diff --git a/Taskfile.yml b/Taskfile.yml
index 02efb4c..454fb0c 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -92,6 +92,12 @@ tasks:
cmds:
- htmltest
+ # LikeC4 tasks
+ likec4:generate:
+ desc: Generate LikeC4 webcomponent (includes all architecture projects)
+ cmds:
+ - cd resources/edp-likec4 && npx likec4 codegen webcomponent --webcomponent-prefix likec4 --outfile ../../static/js/likec4-webcomponent.js
+
# Development tasks
deps:ensure-npm:
desc: Ensure npm dependencies are installed
diff --git a/content/en/docs/architecture/highlevelarch.md b/content/en/docs/architecture/highlevelarch.md
index bc35440..757cb2d 100644
--- a/content/en/docs/architecture/highlevelarch.md
+++ b/content/en/docs/architecture/highlevelarch.md
@@ -25,12 +25,12 @@ This document describes the high-level architecture of our Enterprise Developmen
document.addEventListener('DOMContentLoaded', function() {
let attempts = 0;
const maxAttempts = 10;
-
+
function checkLikeC4Loading() {
attempts++;
const component = document.querySelector('likec4-view');
const loading = document.getElementById('likec4-loading');
-
+
if (component && component.shadowRoot && component.shadowRoot.children.length > 0) {
if (loading) loading.style.display = 'none';
console.log('LikeC4 component loaded successfully');
@@ -44,7 +44,7 @@ document.addEventListener('DOMContentLoaded', function() {
setTimeout(checkLikeC4Loading, 1000);
}
}
-
+
// Check if LikeC4 loader is available
if (typeof window.customElements !== 'undefined') {
setTimeout(checkLikeC4Loading, 1500);
@@ -110,11 +110,11 @@ The interactive diagram above shows the relationships between different componen
To update or modify the architecture diagrams:
-1. Edit the `.c4` files in `resources/likec4/`
+1. Edit the `.c4` files in `resources/edp-likec4/`
2. Regenerate the webcomponent:
```bash
- cd resources/likec4
+ cd resources/edp-likec4
npx likec4 codegen webcomponent \
--webcomponent-prefix likec4 \
--outfile ../../static/js/likec4-webcomponent.js
diff --git a/content/en/docs/architecture/setup.md b/content/en/docs/architecture/setup.md
index cc5a69d..ef6a948 100644
--- a/content/en/docs/architecture/setup.md
+++ b/content/en/docs/architecture/setup.md
@@ -24,7 +24,7 @@ LikeC4 enables you to create interactive C4 architecture diagrams as code. The d
Navigate to the LikeC4 directory and install dependencies:
```bash
-cd resources/likec4
+cd resources/edp-likec4
npm install
```
@@ -39,6 +39,7 @@ npx likec4 codegen webcomponent \
```
This command:
+
- Reads all `.c4` files from `models/` and `views/`
- Generates a single JavaScript file with all architecture views
- Outputs to `static/js/likec4-webcomponent.js`
@@ -54,8 +55,8 @@ The integration should already be configured in:
## Directory Structure
-```
-resources/likec4/
+```plaintext
+resources/edp-likec4/
├── models/ # C4 model definitions
│ ├── components/ # Component models
│ ├── containers/ # Container models
@@ -93,11 +94,12 @@ Add this to any Markdown file:
To find available view IDs, search the `.c4` files:
```bash
-cd resources/likec4
+cd resources/edp-likec4
grep -r "view\s\+\w" views/ models/ --include="*.c4"
```
Common views:
+
- `otc-faas` - OTC FaaS deployment
- `edp` - EDP overview
- `landscape` - Developer landscape
@@ -128,14 +130,14 @@ Click on components in the diagram to explore the architecture.
### 1. Modify Architecture Models
-Edit the `.c4` files in `resources/likec4/`:
+Edit the `.c4` files in `resources/edp-likec4/`:
```bash
# Edit a model
-vi resources/likec4/models/containers/argocd.c4
+vi resources/edp-likec4/models/containers/argocd.c4
# Or edit a view
-vi resources/likec4/views/deployment/otc/otc-faas.c4
+vi resources/edp-likec4/views/deployment/otc/otc-faas.c4
```
### 2. Preview Changes Locally
@@ -143,7 +145,7 @@ vi resources/likec4/views/deployment/otc/otc-faas.c4
Use the LikeC4 CLI to preview:
```bash
-cd resources/likec4
+cd resources/edp-likec4
# Start preview server
npx likec4 start
@@ -156,7 +158,7 @@ npx likec4 start
After making changes:
```bash
-cd resources/likec4
+cd resources/edp-likec4
npx likec4 codegen webcomponent \
--webcomponent-prefix likec4 \
--outfile ../../static/js/likec4-webcomponent.js
@@ -178,7 +180,7 @@ hugo server -D
Commit both the model files and the regenerated web component:
```bash
-git add resources/likec4/
+git add resources/edp-likec4/
git add static/js/likec4-webcomponent.js
git commit -m "feat: update architecture diagrams"
```
@@ -242,12 +244,15 @@ Then update `layouts/partials/hooks/head-end.html`:
1. **Check browser console** (F12 → Console)
2. **Verify webcomponent exists:**
+
```bash
ls -lh static/js/likec4-webcomponent.js
```
+
3. **Regenerate if missing:**
+
```bash
- cd resources/likec4
+ cd resources/edp-likec4
npm install
npx likec4 codegen webcomponent \
--webcomponent-prefix likec4 \
@@ -258,8 +263,9 @@ Then update `layouts/partials/hooks/head-end.html`:
- Check view ID matches exactly (case-sensitive)
- Search for the view in `.c4` files:
+
```bash
- grep -r "view otc-faas" resources/likec4/
+ grep -r "view otc-faas" resources/edp-likec4/
```
### Styling Issues
@@ -272,7 +278,7 @@ Then update `layouts/partials/hooks/head-end.html`:
If LikeC4 codegen fails:
```bash
-cd resources/likec4
+cd resources/edp-likec4
rm -rf node_modules package-lock.json
npm install
```
diff --git a/layouts/partials/hooks/head-end.html b/layouts/partials/hooks/head-end.html
index 8c62718..6968af4 100644
--- a/layouts/partials/hooks/head-end.html
+++ b/layouts/partials/hooks/head-end.html
@@ -2,6 +2,7 @@
+
{{ end }}
diff --git a/resources/likec4/INTEGRATION.md b/resources/edp-likec4/INTEGRATION.md
similarity index 100%
rename from resources/likec4/INTEGRATION.md
rename to resources/edp-likec4/INTEGRATION.md
diff --git a/resources/likec4/README.md b/resources/edp-likec4/README.md
similarity index 70%
rename from resources/likec4/README.md
rename to resources/edp-likec4/README.md
index cc88733..f567446 100644
--- a/resources/likec4/README.md
+++ b/resources/edp-likec4/README.md
@@ -1,4 +1,13 @@
-# LikeC4 architecture documentation
+# LikeC4 Architecture Documentation - EDP Platform
+
+This folder contains LikeC4 architecture models for the **Enterprise Developer Platform (EDP)**.
+
+## Purpose
+
+These models document the platform architecture, not the documentation system itself.
+(For documentation platform architecture, see `resources/doc-likec4/`)
+
+## Usage
Run `npx likec4 start` to start dev server
diff --git a/resources/likec4/deployment/kind/edp.c4 b/resources/edp-likec4/deployment/kind/edp.c4
similarity index 100%
rename from resources/likec4/deployment/kind/edp.c4
rename to resources/edp-likec4/deployment/kind/edp.c4
diff --git a/resources/likec4/deployment/otc/edp.c4 b/resources/edp-likec4/deployment/otc/edp.c4
similarity index 100%
rename from resources/likec4/deployment/otc/edp.c4
rename to resources/edp-likec4/deployment/otc/edp.c4
diff --git a/resources/likec4/deployment/otc/faas-deployment.c4 b/resources/edp-likec4/deployment/otc/faas-deployment.c4
similarity index 83%
rename from resources/likec4/deployment/otc/faas-deployment.c4
rename to resources/edp-likec4/deployment/otc/faas-deployment.c4
index 7d482ef..21f9fa2 100644
--- a/resources/likec4/deployment/otc/faas-deployment.c4
+++ b/resources/edp-likec4/deployment/otc/faas-deployment.c4
@@ -69,4 +69,18 @@ deployment {
}
+ cloud edge 'Edge Cloud' {
+ description 'Edge environments for distributed workloads.'
+ technology 'Edge'
+
+ environment edge-dev 'Edge Dev' {
+ description 'Edge development environment'
+ technology 'Edge'
+ }
+
+ environment edge-prod 'Edge Prod' {
+ description 'Edge production environment'
+ technology 'Edge'
+ }
+ }
}
\ No newline at end of file
diff --git a/resources/likec4/deployment/otc/foundry.c4 b/resources/edp-likec4/deployment/otc/foundry.c4
similarity index 100%
rename from resources/likec4/deployment/otc/foundry.c4
rename to resources/edp-likec4/deployment/otc/foundry.c4
diff --git a/resources/likec4/devbox.json b/resources/edp-likec4/devbox.json
similarity index 100%
rename from resources/likec4/devbox.json
rename to resources/edp-likec4/devbox.json
diff --git a/resources/likec4/devbox.lock b/resources/edp-likec4/devbox.lock
similarity index 100%
rename from resources/likec4/devbox.lock
rename to resources/edp-likec4/devbox.lock
diff --git a/resources/likec4/doc/developer-landscape/cicd-outerloop-2.png b/resources/edp-likec4/doc/developer-landscape/cicd-outerloop-2.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/cicd-outerloop-2.png
rename to resources/edp-likec4/doc/developer-landscape/cicd-outerloop-2.png
diff --git a/resources/likec4/doc/developer-landscape/cicd-outerloop-draft.png b/resources/edp-likec4/doc/developer-landscape/cicd-outerloop-draft.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/cicd-outerloop-draft.png
rename to resources/edp-likec4/doc/developer-landscape/cicd-outerloop-draft.png
diff --git a/resources/likec4/doc/developer-landscape/cicd-outerloop.png b/resources/edp-likec4/doc/developer-landscape/cicd-outerloop.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/cicd-outerloop.png
rename to resources/edp-likec4/doc/developer-landscape/cicd-outerloop.png
diff --git a/resources/likec4/doc/developer-landscape/devday-presentation.md b/resources/edp-likec4/doc/developer-landscape/devday-presentation.md
similarity index 100%
rename from resources/likec4/doc/developer-landscape/devday-presentation.md
rename to resources/edp-likec4/doc/developer-landscape/devday-presentation.md
diff --git a/resources/likec4/doc/developer-landscape/developer-landscape-view-c4-2.png b/resources/edp-likec4/doc/developer-landscape/developer-landscape-view-c4-2.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/developer-landscape-view-c4-2.png
rename to resources/edp-likec4/doc/developer-landscape/developer-landscape-view-c4-2.png
diff --git a/resources/likec4/doc/developer-landscape/developer-landscape-view-c4-ppt-layouted-dark.png b/resources/edp-likec4/doc/developer-landscape/developer-landscape-view-c4-ppt-layouted-dark.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/developer-landscape-view-c4-ppt-layouted-dark.png
rename to resources/edp-likec4/doc/developer-landscape/developer-landscape-view-c4-ppt-layouted-dark.png
diff --git a/resources/likec4/doc/developer-landscape/developer-landscape-view-c4-ppt-layouted.png b/resources/edp-likec4/doc/developer-landscape/developer-landscape-view-c4-ppt-layouted.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/developer-landscape-view-c4-ppt-layouted.png
rename to resources/edp-likec4/doc/developer-landscape/developer-landscape-view-c4-ppt-layouted.png
diff --git a/resources/likec4/doc/developer-landscape/developer-landscape-view-c4.png b/resources/edp-likec4/doc/developer-landscape/developer-landscape-view-c4.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/developer-landscape-view-c4.png
rename to resources/edp-likec4/doc/developer-landscape/developer-landscape-view-c4.png
diff --git a/resources/likec4/doc/developer-landscape/developer-landscape-view-draft.png b/resources/edp-likec4/doc/developer-landscape/developer-landscape-view-draft.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/developer-landscape-view-draft.png
rename to resources/edp-likec4/doc/developer-landscape/developer-landscape-view-draft.png
diff --git a/resources/likec4/doc/developer-landscape/localdev.png b/resources/edp-likec4/doc/developer-landscape/localdev.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/localdev.png
rename to resources/edp-likec4/doc/developer-landscape/localdev.png
diff --git a/resources/likec4/doc/developer-landscape/slide-1.png b/resources/edp-likec4/doc/developer-landscape/slide-1.png
similarity index 100%
rename from resources/likec4/doc/developer-landscape/slide-1.png
rename to resources/edp-likec4/doc/developer-landscape/slide-1.png
diff --git a/resources/likec4/likec4.config.json b/resources/edp-likec4/likec4.config.json
similarity index 100%
rename from resources/likec4/likec4.config.json
rename to resources/edp-likec4/likec4.config.json
diff --git a/resources/likec4/models/code/workflow-edpbuilder.c4 b/resources/edp-likec4/models/code/workflow-edpbuilder.c4
similarity index 100%
rename from resources/likec4/models/code/workflow-edpbuilder.c4
rename to resources/edp-likec4/models/code/workflow-edpbuilder.c4
diff --git a/resources/likec4/models/code/workflow-setup-edp-argocd.c4 b/resources/edp-likec4/models/code/workflow-setup-edp-argocd.c4
similarity index 100%
rename from resources/likec4/models/code/workflow-setup-edp-argocd.c4
rename to resources/edp-likec4/models/code/workflow-setup-edp-argocd.c4
diff --git a/resources/likec4/models/code/workflow-setup-edp-infrastructure.c4 b/resources/edp-likec4/models/code/workflow-setup-edp-infrastructure.c4
similarity index 100%
rename from resources/likec4/models/code/workflow-setup-edp-infrastructure.c4
rename to resources/edp-likec4/models/code/workflow-setup-edp-infrastructure.c4
diff --git a/resources/likec4/models/components/application-specification.c4 b/resources/edp-likec4/models/components/application-specification.c4
similarity index 100%
rename from resources/likec4/models/components/application-specification.c4
rename to resources/edp-likec4/models/components/application-specification.c4
diff --git a/resources/likec4/models/components/forgejoRunner.c4 b/resources/edp-likec4/models/components/forgejoRunner.c4
similarity index 100%
rename from resources/likec4/models/components/forgejoRunner.c4
rename to resources/edp-likec4/models/components/forgejoRunner.c4
diff --git a/resources/likec4/models/components/forgejoRunnerWorker.c4 b/resources/edp-likec4/models/components/forgejoRunnerWorker.c4
similarity index 100%
rename from resources/likec4/models/components/forgejoRunnerWorker.c4
rename to resources/edp-likec4/models/components/forgejoRunnerWorker.c4
diff --git a/resources/likec4/models/components/promtail.c4 b/resources/edp-likec4/models/components/promtail.c4
similarity index 100%
rename from resources/likec4/models/components/promtail.c4
rename to resources/edp-likec4/models/components/promtail.c4
diff --git a/resources/likec4/models/components/tools.c4 b/resources/edp-likec4/models/components/tools.c4
similarity index 100%
rename from resources/likec4/models/components/tools.c4
rename to resources/edp-likec4/models/components/tools.c4
diff --git a/resources/likec4/models/containers/api.c4 b/resources/edp-likec4/models/containers/api.c4
similarity index 100%
rename from resources/likec4/models/containers/api.c4
rename to resources/edp-likec4/models/containers/api.c4
diff --git a/resources/likec4/models/containers/argocd.c4 b/resources/edp-likec4/models/containers/argocd.c4
similarity index 100%
rename from resources/likec4/models/containers/argocd.c4
rename to resources/edp-likec4/models/containers/argocd.c4
diff --git a/resources/likec4/models/containers/backstage.c4 b/resources/edp-likec4/models/containers/backstage.c4
similarity index 100%
rename from resources/likec4/models/containers/backstage.c4
rename to resources/edp-likec4/models/containers/backstage.c4
diff --git a/resources/likec4/models/containers/crossplane.c4 b/resources/edp-likec4/models/containers/crossplane.c4
similarity index 100%
rename from resources/likec4/models/containers/crossplane.c4
rename to resources/edp-likec4/models/containers/crossplane.c4
diff --git a/resources/likec4/models/containers/elasticsearch.c4 b/resources/edp-likec4/models/containers/elasticsearch.c4
similarity index 100%
rename from resources/likec4/models/containers/elasticsearch.c4
rename to resources/edp-likec4/models/containers/elasticsearch.c4
diff --git a/resources/likec4/models/containers/externalsecrets.c4 b/resources/edp-likec4/models/containers/externalsecrets.c4
similarity index 100%
rename from resources/likec4/models/containers/externalsecrets.c4
rename to resources/edp-likec4/models/containers/externalsecrets.c4
diff --git a/resources/likec4/models/containers/forgejo.c4 b/resources/edp-likec4/models/containers/forgejo.c4
similarity index 100%
rename from resources/likec4/models/containers/forgejo.c4
rename to resources/edp-likec4/models/containers/forgejo.c4
diff --git a/resources/likec4/models/containers/grafana.c4 b/resources/edp-likec4/models/containers/grafana.c4
similarity index 100%
rename from resources/likec4/models/containers/grafana.c4
rename to resources/edp-likec4/models/containers/grafana.c4
diff --git a/resources/likec4/models/containers/ingress.c4 b/resources/edp-likec4/models/containers/ingress.c4
similarity index 100%
rename from resources/likec4/models/containers/ingress.c4
rename to resources/edp-likec4/models/containers/ingress.c4
diff --git a/resources/likec4/models/containers/keycloak.c4 b/resources/edp-likec4/models/containers/keycloak.c4
similarity index 100%
rename from resources/likec4/models/containers/keycloak.c4
rename to resources/edp-likec4/models/containers/keycloak.c4
diff --git a/resources/likec4/models/containers/kyverno.c4 b/resources/edp-likec4/models/containers/kyverno.c4
similarity index 100%
rename from resources/likec4/models/containers/kyverno.c4
rename to resources/edp-likec4/models/containers/kyverno.c4
diff --git a/resources/likec4/models/containers/loki.c4 b/resources/edp-likec4/models/containers/loki.c4
similarity index 100%
rename from resources/likec4/models/containers/loki.c4
rename to resources/edp-likec4/models/containers/loki.c4
diff --git a/resources/likec4/models/containers/mailhog.c4 b/resources/edp-likec4/models/containers/mailhog.c4
similarity index 100%
rename from resources/likec4/models/containers/mailhog.c4
rename to resources/edp-likec4/models/containers/mailhog.c4
diff --git a/resources/likec4/models/containers/minio.c4 b/resources/edp-likec4/models/containers/minio.c4
similarity index 100%
rename from resources/likec4/models/containers/minio.c4
rename to resources/edp-likec4/models/containers/minio.c4
diff --git a/resources/likec4/models/containers/monitoring.c4 b/resources/edp-likec4/models/containers/monitoring.c4
similarity index 100%
rename from resources/likec4/models/containers/monitoring.c4
rename to resources/edp-likec4/models/containers/monitoring.c4
diff --git a/resources/likec4/models/containers/objectstorage.c4 b/resources/edp-likec4/models/containers/objectstorage.c4
similarity index 100%
rename from resources/likec4/models/containers/objectstorage.c4
rename to resources/edp-likec4/models/containers/objectstorage.c4
diff --git a/resources/likec4/models/containers/openbao.c4 b/resources/edp-likec4/models/containers/openbao.c4
similarity index 100%
rename from resources/likec4/models/containers/openbao.c4
rename to resources/edp-likec4/models/containers/openbao.c4
diff --git a/resources/likec4/models/containers/postgres.c4 b/resources/edp-likec4/models/containers/postgres.c4
similarity index 100%
rename from resources/likec4/models/containers/postgres.c4
rename to resources/edp-likec4/models/containers/postgres.c4
diff --git a/resources/likec4/models/containers/prometheus.c4 b/resources/edp-likec4/models/containers/prometheus.c4
similarity index 100%
rename from resources/likec4/models/containers/prometheus.c4
rename to resources/edp-likec4/models/containers/prometheus.c4
diff --git a/resources/likec4/models/containers/redis.c4 b/resources/edp-likec4/models/containers/redis.c4
similarity index 100%
rename from resources/likec4/models/containers/redis.c4
rename to resources/edp-likec4/models/containers/redis.c4
diff --git a/resources/likec4/models/containers/spark-operator.c4 b/resources/edp-likec4/models/containers/spark-operator.c4
similarity index 100%
rename from resources/likec4/models/containers/spark-operator.c4
rename to resources/edp-likec4/models/containers/spark-operator.c4
diff --git a/resources/likec4/models/containers/velero.c4 b/resources/edp-likec4/models/containers/velero.c4
similarity index 100%
rename from resources/likec4/models/containers/velero.c4
rename to resources/edp-likec4/models/containers/velero.c4
diff --git a/resources/likec4/models/context/actors.c4 b/resources/edp-likec4/models/context/actors.c4
similarity index 100%
rename from resources/likec4/models/context/actors.c4
rename to resources/edp-likec4/models/context/actors.c4
diff --git a/resources/likec4/models/context/cloud.c4 b/resources/edp-likec4/models/context/cloud.c4
similarity index 100%
rename from resources/likec4/models/context/cloud.c4
rename to resources/edp-likec4/models/context/cloud.c4
diff --git a/resources/likec4/models/context/customer-systems.c4 b/resources/edp-likec4/models/context/customer-systems.c4
similarity index 100%
rename from resources/likec4/models/context/customer-systems.c4
rename to resources/edp-likec4/models/context/customer-systems.c4
diff --git a/resources/likec4/models/context/edfoundry.c4 b/resources/edp-likec4/models/context/edfoundry.c4
similarity index 100%
rename from resources/likec4/models/context/edfoundry.c4
rename to resources/edp-likec4/models/context/edfoundry.c4
diff --git a/resources/likec4/models/context/edp.c4 b/resources/edp-likec4/models/context/edp.c4
similarity index 100%
rename from resources/likec4/models/context/edp.c4
rename to resources/edp-likec4/models/context/edp.c4
diff --git a/resources/likec4/models/context/localbox.c4 b/resources/edp-likec4/models/context/localbox.c4
similarity index 100%
rename from resources/likec4/models/context/localbox.c4
rename to resources/edp-likec4/models/context/localbox.c4
diff --git a/resources/edp-likec4/models/doc-platform/documentation-platform.c4 b/resources/edp-likec4/models/doc-platform/documentation-platform.c4
new file mode 100644
index 0000000..44a089c
--- /dev/null
+++ b/resources/edp-likec4/models/doc-platform/documentation-platform.c4
@@ -0,0 +1,336 @@
+// Documentation Platform Architecture Model
+// This model describes the Hugo-based documentation platform
+
+model {
+
+// === Personas ===
+documentor = person 'Documentor' {
+ description 'Content creator and maintainer of the developer platform documentation'
+ technology 'Hugo, Markdown, LikeC4'
+}
+
+// === Documentation Platform System ===
+docPlatform = system 'Documentation Platform' {
+ description 'Hugo-based documentation system with integrated architecture visualization'
+
+ // Core Components
+ hugoSite = component 'Hugo Site' {
+ description 'Static site generator based on Hugo with Docsy theme'
+ technology 'Hugo Extended, Docsy'
+ }
+
+ contentRepo = repository 'Content Repository' {
+ description 'Markdown files, images, and configuration'
+ technology 'Git, Markdown'
+
+ contentPages = component 'Content Pages' {
+ description 'Documentation pages in Markdown format'
+ technology 'Markdown'
+ }
+
+ archModels = component 'Architecture Models' {
+ description 'LikeC4 architecture models and views'
+ technology 'LikeC4 DSL'
+ }
+
+ assets = component 'Static Assets' {
+ description 'CSS, JavaScript, images, fonts'
+ technology 'CSS, JavaScript'
+ }
+ }
+
+ likec4Integration = component 'LikeC4 Integration' {
+ description 'Architecture diagram visualization embedded in documentation'
+ technology 'LikeC4, Web Components'
+ }
+
+ // Build & Development Tools
+ taskfile = tool 'Taskfile' {
+ description 'Task automation for local development, build, and testing'
+ technology 'Task (go-task)'
+ }
+
+ devServer = process 'Development Server' {
+ description 'Local Hugo server with hot reload for content development'
+ technology 'Hugo Server'
+ }
+}
+
+// === CI/CD Pipeline ===
+cicdPipeline = system 'CI/CD Pipeline' {
+ description 'Automated testing and deployment pipeline'
+
+ githubActions = process 'GitHub Actions' {
+ description 'Automated testing workflow on push/PR'
+ technology 'GitHub Actions'
+
+ testBuild = component 'Build Test' {
+ description 'Hugo build validation'
+ technology 'Hugo'
+ }
+
+ testMarkdown = component 'Markdown Lint' {
+ description 'Markdown syntax and style checking'
+ technology 'markdownlint'
+ }
+
+ testHtml = component 'HTML Validation' {
+ description 'Generated HTML validation'
+ technology 'htmlvalidate'
+ }
+
+ testLinks = component 'Link Checker' {
+ description 'Broken link detection'
+ technology 'htmltest'
+ }
+ }
+
+ containerBuild = process 'Container Build' {
+ description 'OCI/Docker image creation with Hugo site'
+ technology 'Docker'
+ }
+}
+
+// === Deployment ===
+deploymentEnv = system 'Deployment Environment' {
+ description 'Edge deployment infrastructure'
+
+ edgeConnect = system 'Edge Connect' {
+ description 'Edge deployment orchestration platform'
+ technology 'EdgeConnect'
+ }
+
+ k8sCluster = system 'Kubernetes Cluster' {
+ description 'K8s cluster on edge cloudlet (Munich)'
+ technology 'Kubernetes'
+
+ docService = component 'Documentation Service' {
+ description 'LoadBalancer service exposing docs on port 80'
+ technology 'K8s Service'
+ }
+
+ docDeployment = component 'Documentation Deployment' {
+ description 'Pod running Hugo-generated static site'
+ technology 'K8s Deployment, Nginx'
+ }
+ }
+}
+
+// === Relationships: Documentor Workflow ===
+documentor -> contentRepo.contentPages 'writes documentation' {
+ description 'Creates and updates Markdown content'
+}
+
+documentor -> contentRepo.archModels 'creates architecture models' {
+ description 'Defines C4 models with LikeC4 DSL'
+}
+
+documentor -> taskfile 'executes local tasks' {
+ description 'task serve, task build, task test'
+}
+
+// === Relationships: Local Development ===
+taskfile -> devServer 'starts' {
+ description 'task serve'
+}
+
+devServer -> hugoSite 'renders' {
+ description 'Live reload on content changes'
+}
+
+hugoSite -> contentRepo 'reads content from' {
+ description 'Processes Markdown and templates'
+}
+
+hugoSite -> likec4Integration 'integrates' {
+ description 'Embeds architecture diagrams'
+}
+
+likec4Integration -> contentRepo.archModels 'visualizes' {
+ description 'Renders C4 models as interactive diagrams'
+}
+
+// === Relationships: Testing ===
+taskfile -> githubActions.testBuild 'can run locally' {
+ description 'task test:build'
+}
+
+taskfile -> githubActions.testMarkdown 'can run locally' {
+ description 'task test:markdown'
+}
+
+taskfile -> githubActions.testHtml 'can run locally' {
+ description 'task test:html'
+}
+
+taskfile -> githubActions.testLinks 'can run locally' {
+ description 'task test:links'
+}
+
+// === Relationships: CI/CD ===
+contentRepo -> githubActions 'triggers on push/PR' {
+ description 'Webhook on main branch'
+}
+
+githubActions.testBuild -> hugoSite 'builds' {
+ description 'hugo --gc --minify'
+}
+
+githubActions.testMarkdown -> contentRepo.contentPages 'validates' {
+ description 'Lints Markdown files'
+}
+
+githubActions.testHtml -> hugoSite 'validates output' {
+ description 'Checks generated HTML'
+}
+
+githubActions.testLinks -> hugoSite 'checks links in' {
+ description 'Detects broken links'
+}
+
+githubActions -> containerBuild 'triggers on success' {
+ description 'Builds Docker image with Hugo output'
+}
+
+containerBuild -> hugoSite 'packages' {
+ description 'public/ directory served by Nginx'
+}
+
+// === Relationships: Deployment ===
+containerBuild -> deploymentEnv.edgeConnect 'pushes image to' {
+ description 'Tagged container image'
+}
+
+deploymentEnv.edgeConnect -> deploymentEnv.k8sCluster 'deploys to' {
+ description 'Via edgeconnectdeployment.yaml'
+}
+
+deploymentEnv.k8sCluster.docDeployment -> deploymentEnv.k8sCluster.docService 'exposed by' {
+ description 'Port 80'
+}
+
+documentor -> deploymentEnv.k8sCluster.docService 'views published docs' {
+ description 'HTTPS access to live documentation'
+}
+
+}
+
+// === Views ===
+
+views {
+
+ view overview of docPlatform {
+ title 'Documentation Platform Overview'
+ description 'High-level overview of the Hugo-based documentation platform for documentors'
+
+ include *
+
+ style documentor {
+ color green
+ }
+ style docPlatform {
+ color blue
+ }
+ }
+
+ view localDevelopment of docPlatform {
+ title 'Local Development Workflow'
+ description 'How a documentor works locally with the documentation'
+
+ include documentor
+ include docPlatform
+ include docPlatform.contentRepo -> *
+ include docPlatform.hugoSite
+ include docPlatform.likec4Integration
+ include docPlatform.taskfile
+ include docPlatform.devServer
+
+ style documentor {
+ color green
+ }
+ style docPlatform.taskfile {
+ color amber
+ }
+ style docPlatform.devServer {
+ color amber
+ }
+ }
+
+ view cicdPipeline of cicdPipeline {
+ title 'CI/CD Pipeline'
+ description 'Automated testing and container build process'
+
+ include cicdPipeline
+ include cicdPipeline.githubActions -> *
+ include cicdPipeline.containerBuild
+ include docPlatform.contentRepo
+ include docPlatform.hugoSite
+
+ style cicdPipeline.githubActions {
+ color blue
+ }
+ style cicdPipeline.containerBuild {
+ color indigo
+ }
+ }
+
+ view deploymentFlow {
+ title 'Deployment to Edge Environment'
+ description 'How the documentation is deployed to the edge infrastructure'
+
+ include cicdPipeline.containerBuild
+ include deploymentEnv
+ include deploymentEnv.edgeConnect
+ include deploymentEnv.k8sCluster -> *
+ include documentor
+
+ style deploymentEnv {
+ color muted
+ }
+ style deploymentEnv.k8sCluster {
+ color secondary
+ }
+ }
+
+ view fullWorkflow {
+ title 'Complete Documentor Workflow'
+ description 'End-to-end view from content creation to published documentation'
+
+ include documentor
+ include docPlatform.contentRepo
+ include docPlatform.taskfile
+ include cicdPipeline.githubActions
+ include cicdPipeline.containerBuild
+ include deploymentEnv.edgeConnect
+ include deploymentEnv.k8sCluster
+
+ style documentor {
+ color green
+ }
+ style docPlatform.taskfile {
+ color amber
+ }
+ style cicdPipeline.githubActions {
+ color blue
+ }
+ style deploymentEnv.k8sCluster {
+ color secondary
+ }
+ }
+
+ view testingCapabilities of cicdPipeline.githubActions {
+ title 'Testing Capabilities'
+ description 'All automated tests that ensure documentation quality'
+
+ include *
+ include docPlatform.hugoSite
+ include docPlatform.contentRepo.contentPages
+ include docPlatform.taskfile
+
+ style cicdPipeline.githubActions {
+ color blue
+ }
+ }
+
+}
+
diff --git a/resources/likec4/models/spec.c4 b/resources/edp-likec4/models/spec.c4
similarity index 73%
rename from resources/likec4/models/spec.c4
rename to resources/edp-likec4/models/spec.c4
index c00ac40..c99a0ad 100644
--- a/resources/likec4/models/spec.c4
+++ b/resources/edp-likec4/models/spec.c4
@@ -5,6 +5,12 @@ specification {
color green
}
}
+ element person {
+ style {
+ shape person
+ color green
+ }
+ }
element component
element container {
style {
@@ -22,6 +28,13 @@ specification {
element step
element system
element workflow
+ element tool
+ element process
+ element repository {
+ style {
+ shape storage
+ }
+ }
deploymentNode cloud
deploymentNode environment
diff --git a/resources/likec4/package-lock.json b/resources/edp-likec4/package-lock.json
similarity index 100%
rename from resources/likec4/package-lock.json
rename to resources/edp-likec4/package-lock.json
diff --git a/resources/likec4/package.json b/resources/edp-likec4/package.json
similarity index 100%
rename from resources/likec4/package.json
rename to resources/edp-likec4/package.json
diff --git a/resources/likec4/views/deployment/kind/kind.c4 b/resources/edp-likec4/views/deployment/kind/kind.c4
similarity index 100%
rename from resources/likec4/views/deployment/kind/kind.c4
rename to resources/edp-likec4/views/deployment/kind/kind.c4
diff --git a/resources/likec4/views/deployment/otc/edp.c4 b/resources/edp-likec4/views/deployment/otc/edp.c4
similarity index 100%
rename from resources/likec4/views/deployment/otc/edp.c4
rename to resources/edp-likec4/views/deployment/otc/edp.c4
diff --git a/resources/likec4/views/deployment/otc/forgejo-runner-connections.md b/resources/edp-likec4/views/deployment/otc/forgejo-runner-connections.md
similarity index 100%
rename from resources/likec4/views/deployment/otc/forgejo-runner-connections.md
rename to resources/edp-likec4/views/deployment/otc/forgejo-runner-connections.md
diff --git a/resources/likec4/views/deployment/otc/foundry-and-edp.c4 b/resources/edp-likec4/views/deployment/otc/foundry-and-edp.c4
similarity index 100%
rename from resources/likec4/views/deployment/otc/foundry-and-edp.c4
rename to resources/edp-likec4/views/deployment/otc/foundry-and-edp.c4
diff --git a/resources/likec4/views/deployment/otc/foundry.c4 b/resources/edp-likec4/views/deployment/otc/foundry.c4
similarity index 100%
rename from resources/likec4/views/deployment/otc/foundry.c4
rename to resources/edp-likec4/views/deployment/otc/foundry.c4
diff --git a/resources/likec4/views/deployment/otc/otc-faas.c4 b/resources/edp-likec4/views/deployment/otc/otc-faas.c4
similarity index 100%
rename from resources/likec4/views/deployment/otc/otc-faas.c4
rename to resources/edp-likec4/views/deployment/otc/otc-faas.c4
diff --git a/resources/likec4/views/dynamic/cicd/gitops-inner-outer-loop.c4 b/resources/edp-likec4/views/dynamic/cicd/gitops-inner-outer-loop.c4
similarity index 100%
rename from resources/likec4/views/dynamic/cicd/gitops-inner-outer-loop.c4
rename to resources/edp-likec4/views/dynamic/cicd/gitops-inner-outer-loop.c4
diff --git a/resources/likec4/views/edp/edfbuilder.c4 b/resources/edp-likec4/views/edp/edfbuilder.c4
similarity index 100%
rename from resources/likec4/views/edp/edfbuilder.c4
rename to resources/edp-likec4/views/edp/edfbuilder.c4
diff --git a/resources/likec4/views/edp/edp-as-idp.c4 b/resources/edp-likec4/views/edp/edp-as-idp.c4
similarity index 100%
rename from resources/likec4/views/edp/edp-as-idp.c4
rename to resources/edp-likec4/views/edp/edp-as-idp.c4
diff --git a/resources/likec4/views/edp/edp-as-orchestrator.c4 b/resources/edp-likec4/views/edp/edp-as-orchestrator.c4
similarity index 100%
rename from resources/likec4/views/edp/edp-as-orchestrator.c4
rename to resources/edp-likec4/views/edp/edp-as-orchestrator.c4
diff --git a/resources/likec4/views/edp/edp.c4 b/resources/edp-likec4/views/edp/edp.c4
similarity index 100%
rename from resources/likec4/views/edp/edp.c4
rename to resources/edp-likec4/views/edp/edp.c4
diff --git a/resources/likec4/views/high-level-concept/application-transition.c4 b/resources/edp-likec4/views/high-level-concept/application-transition.c4
similarity index 100%
rename from resources/likec4/views/high-level-concept/application-transition.c4
rename to resources/edp-likec4/views/high-level-concept/application-transition.c4
diff --git a/resources/likec4/views/high-level-concept/platform-context/developer-landscape-with-foundry.c4 b/resources/edp-likec4/views/high-level-concept/platform-context/developer-landscape-with-foundry.c4
similarity index 100%
rename from resources/likec4/views/high-level-concept/platform-context/developer-landscape-with-foundry.c4
rename to resources/edp-likec4/views/high-level-concept/platform-context/developer-landscape-with-foundry.c4
diff --git a/resources/likec4/views/high-level-concept/platform-context/developer-landscape.c4 b/resources/edp-likec4/views/high-level-concept/platform-context/developer-landscape.c4
similarity index 100%
rename from resources/likec4/views/high-level-concept/platform-context/developer-landscape.c4
rename to resources/edp-likec4/views/high-level-concept/platform-context/developer-landscape.c4
diff --git a/static/TeleNeoOffice-Bold.a7bb592b.ttf b/static/TeleNeoOffice-Bold.a7bb592b.ttf
new file mode 120000
index 0000000..2099746
--- /dev/null
+++ b/static/TeleNeoOffice-Bold.a7bb592b.ttf
@@ -0,0 +1 @@
+fonts/TeleNeoOffice-Bold.a7bb592b.ttf
\ No newline at end of file
diff --git a/static/TeleNeoOffice-ExtraBold.fbe9fe42.ttf b/static/TeleNeoOffice-ExtraBold.fbe9fe42.ttf
new file mode 120000
index 0000000..95eb627
--- /dev/null
+++ b/static/TeleNeoOffice-ExtraBold.fbe9fe42.ttf
@@ -0,0 +1 @@
+fonts/TeleNeoOffice-ExtraBold.fbe9fe42.ttf
\ No newline at end of file
diff --git a/static/TeleNeoOffice-Medium.79fb426d.ttf b/static/TeleNeoOffice-Medium.79fb426d.ttf
new file mode 120000
index 0000000..5531d58
--- /dev/null
+++ b/static/TeleNeoOffice-Medium.79fb426d.ttf
@@ -0,0 +1 @@
+fonts/TeleNeoOffice-Medium.79fb426d.ttf
\ No newline at end of file
diff --git a/static/TeleNeoOffice-Regular.b0a2cff1.ttf b/static/TeleNeoOffice-Regular.b0a2cff1.ttf
new file mode 120000
index 0000000..dcd4564
--- /dev/null
+++ b/static/TeleNeoOffice-Regular.b0a2cff1.ttf
@@ -0,0 +1 @@
+fonts/TeleNeoOffice-Regular.b0a2cff1.ttf
\ No newline at end of file
diff --git a/static/TeleNeoOffice-Thin.53627df9.ttf b/static/TeleNeoOffice-Thin.53627df9.ttf
new file mode 120000
index 0000000..717239f
--- /dev/null
+++ b/static/TeleNeoOffice-Thin.53627df9.ttf
@@ -0,0 +1 @@
+fonts/TeleNeoOffice-Thin.53627df9.ttf
\ No newline at end of file
diff --git a/static/fonts/TeleNeoOffice-Bold.a7bb592b.ttf b/static/fonts/TeleNeoOffice-Bold.a7bb592b.ttf
new file mode 100644
index 0000000..88d13e1
Binary files /dev/null and b/static/fonts/TeleNeoOffice-Bold.a7bb592b.ttf differ
diff --git a/static/fonts/TeleNeoOffice-ExtraBold.fbe9fe42.ttf b/static/fonts/TeleNeoOffice-ExtraBold.fbe9fe42.ttf
new file mode 100644
index 0000000..158ffc8
Binary files /dev/null and b/static/fonts/TeleNeoOffice-ExtraBold.fbe9fe42.ttf differ
diff --git a/static/fonts/TeleNeoOffice-Medium.79fb426d.ttf b/static/fonts/TeleNeoOffice-Medium.79fb426d.ttf
new file mode 100644
index 0000000..6ceef93
Binary files /dev/null and b/static/fonts/TeleNeoOffice-Medium.79fb426d.ttf differ
diff --git a/static/fonts/TeleNeoOffice-Regular.b0a2cff1.ttf b/static/fonts/TeleNeoOffice-Regular.b0a2cff1.ttf
new file mode 100644
index 0000000..672a9b8
Binary files /dev/null and b/static/fonts/TeleNeoOffice-Regular.b0a2cff1.ttf differ
diff --git a/static/fonts/TeleNeoOffice-Thin.53627df9.ttf b/static/fonts/TeleNeoOffice-Thin.53627df9.ttf
new file mode 100644
index 0000000..edeb0d9
Binary files /dev/null and b/static/fonts/TeleNeoOffice-Thin.53627df9.ttf differ
diff --git a/static/js/likec4-webcomponent.js b/static/js/likec4-webcomponent.js
index f8766cf..4ecad1d 100644
--- a/static/js/likec4-webcomponent.js
+++ b/static/js/likec4-webcomponent.js
@@ -1,4 +1,4 @@
-var LikeC4Views=(function(F_){"use strict";/* prettier-ignore-start */
+var LikeC4Views=(function(F6){"use strict";/* prettier-ignore-start */
/* eslint-disable */
/******************************************************************************
@@ -7,7 +7,7 @@ var LikeC4Views=(function(F_){"use strict";/* prettier-ignore-start */
******************************************************************************/
-function w1e(e,r){for(var n=0;no[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function vM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H_={exports:{}},h1={};/**
+function w1e(e,r){for(var n=0;no[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function vO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H6={exports:{}},h1={};/**
* @license React
* react-jsx-runtime.production.js
*
@@ -15,7 +15,7 @@ function w1e(e,r){for(var n=0;n"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),V_.exports=S1e(),V_.exports}var ji=CM();const TM=vM(ji);function C1e(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function ba(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return C1e(e,r,n);throw Error("Wrong number of arguments")}function _h(...e){return ba(T1e,e)}const T1e=(e,r)=>e.length>=r;function mt(e,r){if(typeof e>"u"||e==null){const n=typeof r=="function"?r():r;throw new Error(n??`Expected defined value, but received ${e}`)}return e}function nt(e,r){if(!e)throw new Error(r??"Invariant failed")}function Xa(e){throw new Error(`NonExhaustive value: ${e}`)}function cr(e,r,n){const o=typeof r=="symbol"?r:Symbol.for(r);return e.hasOwnProperty(o)||Object.defineProperty(e,o,{enumerable:!1,writable:!1,value:n()}),e[o]}const{min:R1e,max:A1e}=Math,yd=(e,r=0,n=1)=>R1e(A1e(r,e),n),Y_=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=yd(e[r],0,255)):r===3&&(e[r]=yd(e[r],0,1));return e},RM={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])RM[`[object ${e}]`]=e.toLowerCase();function Ft(e){return RM[Object.prototype.toString.call(e)]||"object"}const Pt=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Ft(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),Eh=e=>{if(e.length<2)return null;const r=e.length-1;return Ft(e[r])=="string"?e[r].toLowerCase():null},{PI:Vv,min:AM,max:NM}=Math,Ka=e=>Math.round(e*100)/100,W_=e=>Math.round(e*100)/100,$s=Vv*2,G_=Vv/3,N1e=Vv/180,D1e=180/Vv;function DM(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Ct={format:{},autodetect:[]};let je=class{constructor(...r){const n=this;if(Ft(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=Eh(r),a=!1;if(!o){a=!0,Ct.sorted||(Ct.autodetect=Ct.autodetect.sort((i,l)=>l.p-i.p),Ct.sorted=!0);for(let i of Ct.autodetect)if(o=i.test(...r),o)break}if(Ct.format[o]){const i=Ct.format[o].apply(null,a?r:r.slice(0,-1));n._rgb=Y_(i)}else throw new Error("unknown format: "+r);n._rgb.length===3&&n._rgb.push(1)}toString(){return Ft(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const $1e="3.1.2",Tt=(...e)=>new je(...e);Tt.version=$1e;const Sh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},P1e=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,O1e=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,$M=e=>{if(e.match(P1e)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(O1e)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:Yv}=Math,PM=(...e)=>{let[r,n,o,a]=Pt(e,"rgba"),i=Eh(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=Yv(r),n=Yv(n),o=Yv(o);let s="000000"+(r<<16|n<<8|o).toString(16);s=s.substr(s.length-6);let c="0"+Yv(a*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${s}${c}`;case"argb":return`#${c}${s}`;default:return`#${s}`}};je.prototype.name=function(){const e=PM(this._rgb,"rgb");for(let r of Object.keys(Sh))if(Sh[r]===e)return r.toLowerCase();return e},Ct.format.named=e=>{if(e=e.toLowerCase(),Sh[e])return $M(Sh[e]);throw new Error("unknown color name: "+e)},Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&Sh[e.toLowerCase()])return"named"}}),je.prototype.alpha=function(e,r=!1){return e!==void 0&&Ft(e)==="number"?r?(this._rgb[3]=e,this):new je([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},je.prototype.clipped=function(){return this._rgb._clipped||!1};const ql={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},M1e=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Ps(e){const r=M1e.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);ql.labWhitePoint=e,ql.Xn=r[0],ql.Zn=r[1]}function f1(){return ql.labWhitePoint}const X_=(...e)=>{e=Pt(e,"lab");const[r,n,o]=e,[a,i,l]=I1e(r,n,o),[s,c,u]=OM(a,i,l);return[s,c,u,e.length>3?e[3]:1]},I1e=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:l,Yn:s,Zn:c}=ql,u=(e+16)/116,d=.002*r+u,p=u-.005*n,f=d*d*d,g=p*p*p,b=f>o?f:(116*d-16)/a,x=e>i?Math.pow((e+16)/116,3):e/a,w=g>o?g:(116*p-16)/a,k=b*l,C=x*s,_=w*c;return[k,C,_]},K_=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},OM=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:l,Xn:s,Yn:c,Zn:u}=ql,d=s*o.m00+c*o.m10+u*o.m20,p=s*o.m01+c*o.m11+u*o.m21,f=s*o.m02+c*o.m12+u*o.m22,g=l.X*o.m00+l.Y*o.m10+l.Z*o.m20,b=l.X*o.m01+l.Y*o.m11+l.Z*o.m21,x=l.X*o.m02+l.Y*o.m12+l.Z*o.m22,w=(e*o.m00+r*o.m10+n*o.m20)*(g/d),k=(e*o.m01+r*o.m11+n*o.m21)*(b/p),C=(e*o.m02+r*o.m12+n*o.m22)*(x/f),_=w*a.m00+k*a.m10+C*a.m20,T=w*a.m01+k*a.m11+C*a.m21,R=w*a.m02+k*a.m12+C*a.m22,A=K_(_*i.m00+T*i.m10+R*i.m20),D=K_(_*i.m01+T*i.m11+R*i.m21),N=K_(_*i.m02+T*i.m12+R*i.m22);return[A*255,D*255,N*255]},Z_=(...e)=>{const[r,n,o,...a]=Pt(e,"rgb"),[i,l,s]=MM(r,n,o),[c,u,d]=L1e(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function L1e(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:l,kK:s}=ql,c=e/o,u=r/a,d=n/i,p=c>l?Math.pow(c,1/3):(s*c+16)/116,f=u>l?Math.pow(u,1/3):(s*u+16)/116,g=d>l?Math.pow(d,1/3):(s*d+16)/116;return[116*f-16,500*(p-f),200*(f-g)]}function Q_(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const MM=(e,r,n)=>{e=Q_(e/255),r=Q_(r/255),n=Q_(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:l,Yn:s,Zn:c,As:u,Bs:d,Cs:p}=ql;let f=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,b=e*o.m02+r*o.m12+n*o.m22;const x=l*a.m00+s*a.m10+c*a.m20,w=l*a.m01+s*a.m11+c*a.m21,k=l*a.m02+s*a.m12+c*a.m22;let C=f*a.m00+g*a.m10+b*a.m20,_=f*a.m01+g*a.m11+b*a.m21,T=f*a.m02+g*a.m12+b*a.m22;return C*=x/u,_*=w/d,T*=k/p,f=C*i.m00+_*i.m10+T*i.m20,g=C*i.m01+_*i.m11+T*i.m21,b=C*i.m02+_*i.m12+T*i.m22,[f,g,b]};je.prototype.lab=function(){return Z_(this._rgb)},Object.assign(Tt,{lab:(...e)=>new je(...e,"lab"),getLabWhitePoint:f1,setLabWhitePoint:Ps}),Ct.format.lab=X_,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Pt(e,"lab"),Ft(e)==="array"&&e.length===3)return"lab"}}),je.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=ql.Kn*e,new je(n,"lab").alpha(r.alpha(),!0)},je.prototype.brighten=function(e=1){return this.darken(-e)},je.prototype.darker=je.prototype.darken,je.prototype.brighter=je.prototype.brighten,je.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:z1e}=Math,j1e=1e-7,B1e=20;je.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Ft(e)==="number"){if(e===0)return new je([0,0,0,this._rgb[3]],"rgb");if(e===1)return new je([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=B1e;const a=(l,s)=>{const c=l.interpolate(s,.5,r),u=c.luminance();return Math.abs(e-u)e?a(l,c):a(c,s)},i=(n>e?a(new je([0,0,0]),this):a(this,new je([255,255,255]))).rgb();return new je([...i,this._rgb[3]])}return F1e(...this._rgb.slice(0,3))};const F1e=(e,r,n)=>(e=J_(e),r=J_(r),n=J_(n),.2126*e+.7152*r+.0722*n),J_=e=>(e/=255,e<=.03928?e/12.92:z1e((e+.055)/1.055,2.4)),Eo={},Ch=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Eo[a]&&!o.length&&(a=Object.keys(Eo)[0]),!Eo[a])throw new Error(`interpolation mode ${a} is not defined`);return Ft(e)!=="object"&&(e=new je(e)),Ft(r)!=="object"&&(r=new je(r)),Eo[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};je.prototype.mix=je.prototype.interpolate=function(e,r=.5,...n){return Ch(this,e,r,...n)},je.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new je([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:H1e,cos:U1e}=Math,IM=(...e)=>{let[r,n,o]=Pt(e,"lch");return isNaN(o)&&(o=0),o=o*N1e,[r,U1e(o)*n,H1e(o)*n]},e6=(...e)=>{e=Pt(e,"lch");const[r,n,o]=e,[a,i,l]=IM(r,n,o),[s,c,u]=X_(a,i,l);return[s,c,u,e.length>3?e[3]:1]},q1e=(...e)=>{const r=DM(Pt(e,"hcl"));return e6(...r)},{sqrt:V1e,atan2:Y1e,round:W1e}=Math,LM=(...e)=>{const[r,n,o]=Pt(e,"lab"),a=V1e(n*n+o*o);let i=(Y1e(o,n)*D1e+360)%360;return W1e(a*1e4)===0&&(i=Number.NaN),[r,a,i]},t6=(...e)=>{const[r,n,o,...a]=Pt(e,"rgb"),[i,l,s]=Z_(r,n,o),[c,u,d]=LM(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};je.prototype.lch=function(){return t6(this._rgb)},je.prototype.hcl=function(){return DM(t6(this._rgb))},Object.assign(Tt,{lch:(...e)=>new je(...e,"lch"),hcl:(...e)=>new je(...e,"hcl")}),Ct.format.lch=e6,Ct.format.hcl=q1e,["lch","hcl"].forEach(e=>Ct.autodetect.push({p:2,test:(...r)=>{if(r=Pt(r,e),Ft(r)==="array"&&r.length===3)return e}})),je.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=ql.Kn*e,n[1]<0&&(n[1]=0),new je(n,"lch").alpha(r.alpha(),!0)},je.prototype.desaturate=function(e=1){return this.saturate(-e)},je.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const l=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(l>-1){if(Ft(r)=="string")switch(r.charAt(0)){case"+":i[l]+=+r;break;case"-":i[l]+=+r;break;case"*":i[l]*=+r.substr(1);break;case"/":i[l]/=+r.substr(1);break;default:i[l]=+r}else if(Ft(r)==="number")i[l]=r;else throw new Error("unsupported value for Color.set");const s=new je(i,o);return n?(this._rgb=s._rgb,this):s}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},je.prototype.tint=function(e=.5,...r){return Ch(this,"white",e,...r)},je.prototype.shade=function(e=.5,...r){return Ch(this,"black",e,...r)};const G1e=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};Eo.rgb=G1e;const{sqrt:r6,pow:Th}=Math,X1e=(e,r,n)=>{const[o,a,i]=e._rgb,[l,s,c]=r._rgb;return new je(r6(Th(o,2)*(1-n)+Th(l,2)*n),r6(Th(a,2)*(1-n)+Th(s,2)*n),r6(Th(i,2)*(1-n)+Th(c,2)*n),"rgb")};Eo.lrgb=X1e;const K1e=(e,r,n)=>{const o=e.lab(),a=r.lab();return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};Eo.lab=K1e;const Rh=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let l,s,c,u,d,p;(o.substr(0,1)==="h"||o==="oklch")&&([l,c,d]=a,[s,u,p]=i);let f,g,b,x;return!isNaN(l)&&!isNaN(s)?(s>l&&s-l>180?x=s-(l+360):s180?x=s+360-l:x=s-l,g=l+n*x):isNaN(l)?isNaN(s)?g=Number.NaN:(g=s,(d==1||d==0)&&o!="hsv"&&(f=u)):(g=l,(p==1||p==0)&&o!="hsv"&&(f=c)),f===void 0&&(f=c+n*(u-c)),b=d+n*(p-d),o==="oklch"?new je([b,f,g],o):new je([g,f,b],o)},zM=(e,r,n)=>Rh(e,r,n,"lch");Eo.lch=zM,Eo.hcl=zM;const Z1e=e=>{if(Ft(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},Q1e=(...e)=>{const[r,n,o]=Pt(e,"rgb");return(r<<16)+(n<<8)+o};je.prototype.num=function(){return Q1e(this._rgb)},Object.assign(Tt,{num:(...e)=>new je(...e,"num")}),Ct.format.num=Z1e,Ct.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ft(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const J1e=(e,r,n)=>{const o=e.num(),a=r.num();return new je(o+n*(a-o),"num")};Eo.num=J1e;const{floor:e0e}=Math,t0e=(...e)=>{e=Pt(e,"hcg");let[r,n,o]=e,a,i,l;o=o*255;const s=n*255;if(n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=e0e(r),u=r-c,d=o*(1-n),p=d+s*(1-u),f=d+s*u,g=d+s;switch(c){case 0:[a,i,l]=[g,f,d];break;case 1:[a,i,l]=[p,g,d];break;case 2:[a,i,l]=[d,g,f];break;case 3:[a,i,l]=[d,p,g];break;case 4:[a,i,l]=[f,d,g];break;case 5:[a,i,l]=[g,d,p];break}}return[a,i,l,e.length>3?e[3]:1]},r0e=(...e)=>{const[r,n,o]=Pt(e,"rgb"),a=AM(r,n,o),i=NM(r,n,o),l=i-a,s=l*100/255,c=a/(255-l)*100;let u;return l===0?u=Number.NaN:(r===i&&(u=(n-o)/l),n===i&&(u=2+(o-r)/l),o===i&&(u=4+(r-n)/l),u*=60,u<0&&(u+=360)),[u,s,c]};je.prototype.hcg=function(){return r0e(this._rgb)};const n0e=(...e)=>new je(...e,"hcg");Tt.hcg=n0e,Ct.format.hcg=t0e,Ct.autodetect.push({p:1,test:(...e)=>{if(e=Pt(e,"hcg"),Ft(e)==="array"&&e.length===3)return"hcg"}});const o0e=(e,r,n)=>Rh(e,r,n,"hcg");Eo.hcg=o0e;const{cos:Ah}=Math,a0e=(...e)=>{e=Pt(e,"hsi");let[r,n,o]=e,a,i,l;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(l=(1-n)/3,a=(1+n*Ah($s*r)/Ah(G_-$s*r))/3,i=1-(l+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*Ah($s*r)/Ah(G_-$s*r))/3,l=1-(a+i)):(r-=2/3,i=(1-n)/3,l=(1+n*Ah($s*r)/Ah(G_-$s*r))/3,a=1-(i+l)),a=yd(o*a*3),i=yd(o*i*3),l=yd(o*l*3),[a*255,i*255,l*255,e.length>3?e[3]:1]},{min:i0e,sqrt:l0e,acos:s0e}=Math,c0e=(...e)=>{let[r,n,o]=Pt(e,"rgb");r/=255,n/=255,o/=255;let a;const i=i0e(r,n,o),l=(r+n+o)/3,s=l>0?1-i/l:0;return s===0?a=NaN:(a=(r-n+(r-o))/2,a/=l0e((r-n)*(r-n)+(r-o)*(n-o)),a=s0e(a),o>n&&(a=$s-a),a/=$s),[a*360,s,l]};je.prototype.hsi=function(){return c0e(this._rgb)};const u0e=(...e)=>new je(...e,"hsi");Tt.hsi=u0e,Ct.format.hsi=a0e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Pt(e,"hsi"),Ft(e)==="array"&&e.length===3)return"hsi"}});const d0e=(e,r,n)=>Rh(e,r,n,"hsi");Eo.hsi=d0e;const n6=(...e)=>{e=Pt(e,"hsl");const[r,n,o]=e;let a,i,l;if(n===0)a=i=l=o*255;else{const s=[0,0,0],c=[0,0,0],u=o<.5?o*(1+n):o+n-o*n,d=2*o-u,p=r/360;s[0]=p+1/3,s[1]=p,s[2]=p-1/3;for(let f=0;f<3;f++)s[f]<0&&(s[f]+=1),s[f]>1&&(s[f]-=1),6*s[f]<1?c[f]=d+(u-d)*6*s[f]:2*s[f]<1?c[f]=u:3*s[f]<2?c[f]=d+(u-d)*(2/3-s[f])*6:c[f]=d;[a,i,l]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,l,e[3]]:[a,i,l,1]},jM=(...e)=>{e=Pt(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=AM(r,n,o),i=NM(r,n,o),l=(i+a)/2;let s,c;return i===a?(s=0,c=Number.NaN):s=l<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,l,e[3]]:[c,s,l]};je.prototype.hsl=function(){return jM(this._rgb)};const p0e=(...e)=>new je(...e,"hsl");Tt.hsl=p0e,Ct.format.hsl=n6,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Pt(e,"hsl"),Ft(e)==="array"&&e.length===3)return"hsl"}});const h0e=(e,r,n)=>Rh(e,r,n,"hsl");Eo.hsl=h0e;const{floor:f0e}=Math,m0e=(...e)=>{e=Pt(e,"hsv");let[r,n,o]=e,a,i,l;if(o*=255,n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const s=f0e(r),c=r-s,u=o*(1-n),d=o*(1-n*c),p=o*(1-n*(1-c));switch(s){case 0:[a,i,l]=[o,p,u];break;case 1:[a,i,l]=[d,o,u];break;case 2:[a,i,l]=[u,o,p];break;case 3:[a,i,l]=[u,d,o];break;case 4:[a,i,l]=[p,u,o];break;case 5:[a,i,l]=[o,u,d];break}}return[a,i,l,e.length>3?e[3]:1]},{min:g0e,max:y0e}=Math,b0e=(...e)=>{e=Pt(e,"rgb");let[r,n,o]=e;const a=g0e(r,n,o),i=y0e(r,n,o),l=i-a;let s,c,u;return u=i/255,i===0?(s=Number.NaN,c=0):(c=l/i,r===i&&(s=(n-o)/l),n===i&&(s=2+(o-r)/l),o===i&&(s=4+(r-n)/l),s*=60,s<0&&(s+=360)),[s,c,u]};je.prototype.hsv=function(){return b0e(this._rgb)};const v0e=(...e)=>new je(...e,"hsv");Tt.hsv=v0e,Ct.format.hsv=m0e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Pt(e,"hsv"),Ft(e)==="array"&&e.length===3)return"hsv"}});const x0e=(e,r,n)=>Rh(e,r,n,"hsv");Eo.hsv=x0e;function Wv(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(l=>[l]));let o=r[0].length,a=r[0].map((l,s)=>r.map(c=>c[s])),i=e.map(l=>a.map(s=>Array.isArray(l)?l.reduce((c,u,d)=>c+u*(s[d]||0),0):s.reduce((c,u)=>c+u*l,0)));return n===1&&(i=i[0]),o===1?i.map(l=>l[0]):i}const o6=(...e)=>{e=Pt(e,"lab");const[r,n,o,...a]=e,[i,l,s]=w0e([r,n,o]),[c,u,d]=OM(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function w0e(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=Wv(n,e);return Wv(r,o.map(a=>a**3))}const a6=(...e)=>{const[r,n,o,...a]=Pt(e,"rgb"),i=MM(r,n,o);return[...k0e(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function k0e(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=Wv(r,e);return Wv(n,o.map(a=>Math.cbrt(a)))}je.prototype.oklab=function(){return a6(this._rgb)},Object.assign(Tt,{oklab:(...e)=>new je(...e,"oklab")}),Ct.format.oklab=o6,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Pt(e,"oklab"),Ft(e)==="array"&&e.length===3)return"oklab"}});const _0e=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};Eo.oklab=_0e;const E0e=(e,r,n)=>Rh(e,r,n,"oklch");Eo.oklch=E0e;const{pow:i6,sqrt:l6,PI:s6,cos:BM,sin:FM,atan2:S0e}=Math,C0e=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(p,f){return p+f});if(n.forEach((p,f)=>{n[f]*=a}),e=e.map(p=>new je(p)),r==="lrgb")return T0e(e,n);const i=e.shift(),l=i.get(r),s=[];let c=0,u=0;for(let p=0;p{const g=p.get(r);d+=p.alpha()*n[f+1];for(let b=0;b=360;)f-=360;l[p]=f}else l[p]=l[p]/s[p];return d/=o,new je(l,r).alpha(d>.99999?1:d,!0)},T0e=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a.9999999&&(o[3]=1),new je(Y_(o))},{pow:R0e}=Math;function Gv(e){let r="rgb",n=Tt("#ccc"),o=0,a=[0,1],i=[],l=[0,0],s=!1,c=[],u=!1,d=0,p=1,f=!1,g={},b=!0,x=1;const w=function(D){if(D=D||["#fff","#000"],D&&Ft(D)==="string"&&Tt.brewer&&Tt.brewer[D.toLowerCase()]&&(D=Tt.brewer[D.toLowerCase()]),Ft(D)==="array"){D.length===1&&(D=[D[0],D[0]]),D=D.slice(0);for(let N=0;N=s[P];)P++;return P-1}return 0};let C=D=>D,_=D=>D;const T=function(D,N){let P,O;if(N==null&&(N=!1),isNaN(D)||D===null)return n;N?O=D:s&&s.length>2?O=k(D)/(s.length-2):p!==d?O=(D-d)/(p-d):O=1,O=_(O),N||(O=C(O)),x!==1&&(O=R0e(O,x)),O=l[0]+O*(1-l[0]-l[1]),O=yd(O,0,1);const B=Math.floor(O*1e4);if(b&&g[B])P=g[B];else{if(Ft(c)==="array")for(let L=0;L=Y&&L===i.length-1){P=c[L];break}if(O>Y&&Og={};w(e);const A=function(D){const N=Tt(T(D));return u&&N[u]?N[u]():N};return A.classes=function(D){if(D!=null){if(Ft(D)==="array")s=D,a=[D[0],D[D.length-1]];else{const N=Tt.analyze(a);D===0?s=[N.min,N.max]:s=Tt.limits(N,"e",D)}return A}return s},A.domain=function(D){if(!arguments.length)return a;d=D[0],p=D[D.length-1],i=[];const N=c.length;if(D.length===N&&d!==p)for(let P of Array.from(D))i.push((P-d)/(p-d));else{for(let P=0;P2){const P=D.map((B,L)=>L/(D.length-1)),O=D.map(B=>(B-d)/(p-d));O.every((B,L)=>P[L]===B)||(_=B=>{if(B<=0||B>=1)return B;let L=0;for(;B>=O[L+1];)L++;const Y=(B-O[L])/(O[L+1]-O[L]);return P[L]+Y*(P[L+1]-P[L])})}}return a=[d,p],A},A.mode=function(D){return arguments.length?(r=D,R(),A):r},A.range=function(D,N){return w(D),A},A.out=function(D){return u=D,A},A.spread=function(D){return arguments.length?(o=D,A):o},A.correctLightness=function(D){return D==null&&(D=!0),f=D,R(),f?C=function(N){const P=T(0,!0).lab()[0],O=T(1,!0).lab()[0],B=P>O;let L=T(N,!0).lab()[0];const Y=P+(O-P)*N;let M=L-Y,q=0,I=1,U=20;for(;Math.abs(M)>.01&&U-- >0;)(function(){return B&&(M*=-1),M<0?(q=N,N+=(I-N)*.5):(I=N,N+=(q-N)*.5),L=T(N,!0).lab()[0],M=L-Y})();return N}:C=N=>N,A},A.padding=function(D){return D!=null?(Ft(D)==="number"&&(D=[D,D]),l=D,A):l},A.colors=function(D,N){arguments.length<2&&(N="hex");let P=[];if(arguments.length===0)P=c.slice(0);else if(D===1)P=[A(.5)];else if(D>1){const O=a[0],B=a[1]-O;P=A0e(0,D).map(L=>A(O+L/(D-1)*B))}else{e=[];let O=[];if(s&&s.length>2)for(let B=1,L=s.length,Y=1<=L;Y?BL;Y?B++:B--)O.push((s[B-1]+s[B])*.5);else O=a;P=O.map(B=>A(B))}return Tt[N]&&(P=P.map(O=>O[N]())),P},A.cache=function(D){return D!=null?(b=D,A):b},A.gamma=function(D){return D!=null?(x=D,A):x},A.nodata=function(D){return D!=null?(n=Tt(D),A):n},A}function A0e(e,r,n){let o=[],a=ei;a?l++:l--)o.push(l);return o}const N0e=function(e){let r=[1,1];for(let n=1;nnew je(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>n[s]+i*(o[s]-n[s]));return new je(l,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>(1-i)*(1-i)*n[s]+2*(1-i)*i*o[s]+i*i*a[s]);return new je(l,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(l=>l.lab()),r=function(l){const s=[0,1,2].map(c=>(1-l)*(1-l)*(1-l)*n[c]+3*(1-l)*(1-l)*l*o[c]+3*(1-l)*l*l*a[c]+l*l*l*i[c]);return new je(s,"lab")}}else if(e.length>=5){let i,l,s;i=e.map(c=>c.lab()),s=e.length-1,l=N0e(s),r=function(c){const u=1-c,d=[0,1,2].map(p=>i.reduce((f,g,b)=>f+l[b]*u**(s-b)*c**b*g[p],0));return new je(d,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},$0e=e=>{const r=D0e(e);return r.scale=()=>Gv(r),r},{round:HM}=Math;je.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(HM)},je.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:HM(r):r)},Object.assign(Tt,{rgb:(...e)=>new je(...e,"rgb")}),Ct.format.rgb=(...e)=>{const r=Pt(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Ct.autodetect.push({p:3,test:(...e)=>{if(e=Pt(e,"rgba"),Ft(e)==="array"&&(e.length===3||e.length===4&&Ft(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Bi=(e,r,n)=>{if(!Bi[n])throw new Error("unknown blend mode "+n);return Bi[n](e,r)},Hc=e=>(r,n)=>{const o=Tt(n).rgb(),a=Tt(r).rgb();return Tt.rgb(e(o,a))},Uc=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},P0e=e=>e,O0e=(e,r)=>e*r/255,M0e=(e,r)=>e>r?r:e,I0e=(e,r)=>e>r?e:r,L0e=(e,r)=>255*(1-(1-e/255)*(1-r/255)),z0e=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),j0e=(e,r)=>255*(1-(1-r/255)/(e/255)),B0e=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Bi.normal=Hc(Uc(P0e)),Bi.multiply=Hc(Uc(O0e)),Bi.screen=Hc(Uc(L0e)),Bi.overlay=Hc(Uc(z0e)),Bi.darken=Hc(Uc(M0e)),Bi.lighten=Hc(Uc(I0e)),Bi.dodge=Hc(Uc(B0e)),Bi.burn=Hc(Uc(j0e));const{pow:F0e,sin:H0e,cos:U0e}=Math;function q0e(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,l;Ft(a)==="array"?l=a[1]-a[0]:(l=0,a=[a,a]);const s=function(c){const u=$s*((e+120)/360+r*c),d=F0e(a[0]+l*c,o),f=(i!==0?n[0]+c*i:n)*d*(1-d)/2,g=U0e(u),b=H0e(u),x=d+f*(-.14861*g+1.78277*b),w=d+f*(-.29227*g-.90649*b),k=d+f*(1.97294*g);return Tt(Y_([x*255,w*255,k*255,1]))};return s.start=function(c){return c==null?e:(e=c,s)},s.rotations=function(c){return c==null?r:(r=c,s)},s.gamma=function(c){return c==null?o:(o=c,s)},s.hue=function(c){return c==null?n:(n=c,Ft(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,s)},s.lightness=function(c){return c==null?a:(Ft(c)==="array"?(a=c,l=c[1]-c[0]):(a=[c,c],l=0),s)},s.scale=()=>Tt.scale(s),s.hue(n),s}const V0e="0123456789abcdef",{floor:Y0e,random:W0e}=Math,G0e=()=>{let e="#";for(let r=0;r<6;r++)e+=V0e.charAt(Y0e(W0e()*16));return new je(e,"hex")},{log:UM,pow:X0e,floor:K0e,abs:Z0e}=Math;function qM(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ft(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Ft(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,on.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>VM(n,o,a),n}function VM(e,r="equal",n=7){Ft(e)=="array"&&(e=qM(e));const{min:o,max:a}=e,i=e.values.sort((s,c)=>s-c);if(n===1)return[o,a];const l=[];if(r.substr(0,1)==="c"&&(l.push(o),l.push(a)),r.substr(0,1)==="e"){l.push(o);for(let s=1;s 0");const s=Math.LOG10E*UM(o),c=Math.LOG10E*UM(a);l.push(o);for(let u=1;u200&&(p=!1)}const b={};for(let w=0;ww-k),l.push(x[0]);for(let w=1;w{e=new je(e),r=new je(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};/**
+*/var EO;function S1e(){if(EO)return _o;EO=1;var e=U6();function r(c){var u="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),V6.exports=S1e(),V6.exports}var Bi=CO();const TO=vO(Bi);function C1e(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function ba(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return C1e(e,r,n);throw Error("Wrong number of arguments")}function _h(...e){return ba(T1e,e)}const T1e=(e,r)=>e.length>=r;function mt(e,r){if(typeof e>"u"||e==null){const n=typeof r=="function"?r():r;throw new Error(n??`Expected defined value, but received ${e}`)}return e}function nt(e,r){if(!e)throw new Error(r??"Invariant failed")}function Xa(e){throw new Error(`NonExhaustive value: ${e}`)}function cr(e,r,n){const o=typeof r=="symbol"?r:Symbol.for(r);return e.hasOwnProperty(o)||Object.defineProperty(e,o,{enumerable:!1,writable:!1,value:n()}),e[o]}const{min:R1e,max:A1e}=Math,yd=(e,r=0,n=1)=>R1e(A1e(r,e),n),Y6=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=yd(e[r],0,255)):r===3&&(e[r]=yd(e[r],0,1));return e},RO={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])RO[`[object ${e}]`]=e.toLowerCase();function Ft(e){return RO[Object.prototype.toString.call(e)]||"object"}const $t=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Ft(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),Eh=e=>{if(e.length<2)return null;const r=e.length-1;return Ft(e[r])=="string"?e[r].toLowerCase():null},{PI:Vv,min:AO,max:NO}=Math,Ka=e=>Math.round(e*100)/100,W6=e=>Math.round(e*100)/100,Ps=Vv*2,G6=Vv/3,N1e=Vv/180,D1e=180/Vv;function DO(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Ct={format:{},autodetect:[]};let Be=class{constructor(...r){const n=this;if(Ft(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=Eh(r),a=!1;if(!o){a=!0,Ct.sorted||(Ct.autodetect=Ct.autodetect.sort((i,l)=>l.p-i.p),Ct.sorted=!0);for(let i of Ct.autodetect)if(o=i.test(...r),o)break}if(Ct.format[o]){const i=Ct.format[o].apply(null,a?r:r.slice(0,-1));n._rgb=Y6(i)}else throw new Error("unknown format: "+r);n._rgb.length===3&&n._rgb.push(1)}toString(){return Ft(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const P1e="3.1.2",Tt=(...e)=>new Be(...e);Tt.version=P1e;const Sh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},$1e=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,M1e=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,PO=e=>{if(e.match($1e)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(M1e)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:Yv}=Math,$O=(...e)=>{let[r,n,o,a]=$t(e,"rgba"),i=Eh(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=Yv(r),n=Yv(n),o=Yv(o);let s="000000"+(r<<16|n<<8|o).toString(16);s=s.substr(s.length-6);let c="0"+Yv(a*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${s}${c}`;case"argb":return`#${c}${s}`;default:return`#${s}`}};Be.prototype.name=function(){const e=$O(this._rgb,"rgb");for(let r of Object.keys(Sh))if(Sh[r]===e)return r.toLowerCase();return e},Ct.format.named=e=>{if(e=e.toLowerCase(),Sh[e])return PO(Sh[e]);throw new Error("unknown color name: "+e)},Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&Sh[e.toLowerCase()])return"named"}}),Be.prototype.alpha=function(e,r=!1){return e!==void 0&&Ft(e)==="number"?r?(this._rgb[3]=e,this):new Be([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},Be.prototype.clipped=function(){return this._rgb._clipped||!1};const Ul={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},O1e=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function $s(e){const r=O1e.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);Ul.labWhitePoint=e,Ul.Xn=r[0],Ul.Zn=r[1]}function f1(){return Ul.labWhitePoint}const X6=(...e)=>{e=$t(e,"lab");const[r,n,o]=e,[a,i,l]=I1e(r,n,o),[s,c,u]=MO(a,i,l);return[s,c,u,e.length>3?e[3]:1]},I1e=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:l,Yn:s,Zn:c}=Ul,u=(e+16)/116,d=.002*r+u,p=u-.005*n,f=d*d*d,g=p*p*p,b=f>o?f:(116*d-16)/a,x=e>i?Math.pow((e+16)/116,3):e/a,w=g>o?g:(116*p-16)/a,k=b*l,C=x*s,_=w*c;return[k,C,_]},K6=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},MO=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:l,Xn:s,Yn:c,Zn:u}=Ul,d=s*o.m00+c*o.m10+u*o.m20,p=s*o.m01+c*o.m11+u*o.m21,f=s*o.m02+c*o.m12+u*o.m22,g=l.X*o.m00+l.Y*o.m10+l.Z*o.m20,b=l.X*o.m01+l.Y*o.m11+l.Z*o.m21,x=l.X*o.m02+l.Y*o.m12+l.Z*o.m22,w=(e*o.m00+r*o.m10+n*o.m20)*(g/d),k=(e*o.m01+r*o.m11+n*o.m21)*(b/p),C=(e*o.m02+r*o.m12+n*o.m22)*(x/f),_=w*a.m00+k*a.m10+C*a.m20,T=w*a.m01+k*a.m11+C*a.m21,R=w*a.m02+k*a.m12+C*a.m22,A=K6(_*i.m00+T*i.m10+R*i.m20),D=K6(_*i.m01+T*i.m11+R*i.m21),N=K6(_*i.m02+T*i.m12+R*i.m22);return[A*255,D*255,N*255]},Z6=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=OO(r,n,o),[c,u,d]=L1e(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function L1e(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:l,kK:s}=Ul,c=e/o,u=r/a,d=n/i,p=c>l?Math.pow(c,1/3):(s*c+16)/116,f=u>l?Math.pow(u,1/3):(s*u+16)/116,g=d>l?Math.pow(d,1/3):(s*d+16)/116;return[116*f-16,500*(p-f),200*(f-g)]}function Q6(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const OO=(e,r,n)=>{e=Q6(e/255),r=Q6(r/255),n=Q6(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:l,Yn:s,Zn:c,As:u,Bs:d,Cs:p}=Ul;let f=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,b=e*o.m02+r*o.m12+n*o.m22;const x=l*a.m00+s*a.m10+c*a.m20,w=l*a.m01+s*a.m11+c*a.m21,k=l*a.m02+s*a.m12+c*a.m22;let C=f*a.m00+g*a.m10+b*a.m20,_=f*a.m01+g*a.m11+b*a.m21,T=f*a.m02+g*a.m12+b*a.m22;return C*=x/u,_*=w/d,T*=k/p,f=C*i.m00+_*i.m10+T*i.m20,g=C*i.m01+_*i.m11+T*i.m21,b=C*i.m02+_*i.m12+T*i.m22,[f,g,b]};Be.prototype.lab=function(){return Z6(this._rgb)},Object.assign(Tt,{lab:(...e)=>new Be(...e,"lab"),getLabWhitePoint:f1,setLabWhitePoint:$s}),Ct.format.lab=X6,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"lab"),Ft(e)==="array"&&e.length===3)return"lab"}}),Be.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=Ul.Kn*e,new Be(n,"lab").alpha(r.alpha(),!0)},Be.prototype.brighten=function(e=1){return this.darken(-e)},Be.prototype.darker=Be.prototype.darken,Be.prototype.brighter=Be.prototype.brighten,Be.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:z1e}=Math,B1e=1e-7,j1e=20;Be.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Ft(e)==="number"){if(e===0)return new Be([0,0,0,this._rgb[3]],"rgb");if(e===1)return new Be([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=j1e;const a=(l,s)=>{const c=l.interpolate(s,.5,r),u=c.luminance();return Math.abs(e-u)e?a(l,c):a(c,s)},i=(n>e?a(new Be([0,0,0]),this):a(this,new Be([255,255,255]))).rgb();return new Be([...i,this._rgb[3]])}return F1e(...this._rgb.slice(0,3))};const F1e=(e,r,n)=>(e=J6(e),r=J6(r),n=J6(n),.2126*e+.7152*r+.0722*n),J6=e=>(e/=255,e<=.03928?e/12.92:z1e((e+.055)/1.055,2.4)),Eo={},Ch=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Eo[a]&&!o.length&&(a=Object.keys(Eo)[0]),!Eo[a])throw new Error(`interpolation mode ${a} is not defined`);return Ft(e)!=="object"&&(e=new Be(e)),Ft(r)!=="object"&&(r=new Be(r)),Eo[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};Be.prototype.mix=Be.prototype.interpolate=function(e,r=.5,...n){return Ch(this,e,r,...n)},Be.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new Be([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:H1e,cos:q1e}=Math,IO=(...e)=>{let[r,n,o]=$t(e,"lch");return isNaN(o)&&(o=0),o=o*N1e,[r,q1e(o)*n,H1e(o)*n]},e_=(...e)=>{e=$t(e,"lch");const[r,n,o]=e,[a,i,l]=IO(r,n,o),[s,c,u]=X6(a,i,l);return[s,c,u,e.length>3?e[3]:1]},U1e=(...e)=>{const r=DO($t(e,"hcl"));return e_(...r)},{sqrt:V1e,atan2:Y1e,round:W1e}=Math,LO=(...e)=>{const[r,n,o]=$t(e,"lab"),a=V1e(n*n+o*o);let i=(Y1e(o,n)*D1e+360)%360;return W1e(a*1e4)===0&&(i=Number.NaN),[r,a,i]},t_=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=Z6(r,n,o),[c,u,d]=LO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};Be.prototype.lch=function(){return t_(this._rgb)},Be.prototype.hcl=function(){return DO(t_(this._rgb))},Object.assign(Tt,{lch:(...e)=>new Be(...e,"lch"),hcl:(...e)=>new Be(...e,"hcl")}),Ct.format.lch=e_,Ct.format.hcl=U1e,["lch","hcl"].forEach(e=>Ct.autodetect.push({p:2,test:(...r)=>{if(r=$t(r,e),Ft(r)==="array"&&r.length===3)return e}})),Be.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=Ul.Kn*e,n[1]<0&&(n[1]=0),new Be(n,"lch").alpha(r.alpha(),!0)},Be.prototype.desaturate=function(e=1){return this.saturate(-e)},Be.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const l=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(l>-1){if(Ft(r)=="string")switch(r.charAt(0)){case"+":i[l]+=+r;break;case"-":i[l]+=+r;break;case"*":i[l]*=+r.substr(1);break;case"/":i[l]/=+r.substr(1);break;default:i[l]=+r}else if(Ft(r)==="number")i[l]=r;else throw new Error("unsupported value for Color.set");const s=new Be(i,o);return n?(this._rgb=s._rgb,this):s}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},Be.prototype.tint=function(e=.5,...r){return Ch(this,"white",e,...r)},Be.prototype.shade=function(e=.5,...r){return Ch(this,"black",e,...r)};const G1e=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};Eo.rgb=G1e;const{sqrt:r_,pow:Th}=Math,X1e=(e,r,n)=>{const[o,a,i]=e._rgb,[l,s,c]=r._rgb;return new Be(r_(Th(o,2)*(1-n)+Th(l,2)*n),r_(Th(a,2)*(1-n)+Th(s,2)*n),r_(Th(i,2)*(1-n)+Th(c,2)*n),"rgb")};Eo.lrgb=X1e;const K1e=(e,r,n)=>{const o=e.lab(),a=r.lab();return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};Eo.lab=K1e;const Rh=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let l,s,c,u,d,p;(o.substr(0,1)==="h"||o==="oklch")&&([l,c,d]=a,[s,u,p]=i);let f,g,b,x;return!isNaN(l)&&!isNaN(s)?(s>l&&s-l>180?x=s-(l+360):s180?x=s+360-l:x=s-l,g=l+n*x):isNaN(l)?isNaN(s)?g=Number.NaN:(g=s,(d==1||d==0)&&o!="hsv"&&(f=u)):(g=l,(p==1||p==0)&&o!="hsv"&&(f=c)),f===void 0&&(f=c+n*(u-c)),b=d+n*(p-d),o==="oklch"?new Be([b,f,g],o):new Be([g,f,b],o)},zO=(e,r,n)=>Rh(e,r,n,"lch");Eo.lch=zO,Eo.hcl=zO;const Z1e=e=>{if(Ft(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},Q1e=(...e)=>{const[r,n,o]=$t(e,"rgb");return(r<<16)+(n<<8)+o};Be.prototype.num=function(){return Q1e(this._rgb)},Object.assign(Tt,{num:(...e)=>new Be(...e,"num")}),Ct.format.num=Z1e,Ct.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ft(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const J1e=(e,r,n)=>{const o=e.num(),a=r.num();return new Be(o+n*(a-o),"num")};Eo.num=J1e;const{floor:e0e}=Math,t0e=(...e)=>{e=$t(e,"hcg");let[r,n,o]=e,a,i,l;o=o*255;const s=n*255;if(n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=e0e(r),u=r-c,d=o*(1-n),p=d+s*(1-u),f=d+s*u,g=d+s;switch(c){case 0:[a,i,l]=[g,f,d];break;case 1:[a,i,l]=[p,g,d];break;case 2:[a,i,l]=[d,g,f];break;case 3:[a,i,l]=[d,p,g];break;case 4:[a,i,l]=[f,d,g];break;case 5:[a,i,l]=[g,d,p];break}}return[a,i,l,e.length>3?e[3]:1]},r0e=(...e)=>{const[r,n,o]=$t(e,"rgb"),a=AO(r,n,o),i=NO(r,n,o),l=i-a,s=l*100/255,c=a/(255-l)*100;let u;return l===0?u=Number.NaN:(r===i&&(u=(n-o)/l),n===i&&(u=2+(o-r)/l),o===i&&(u=4+(r-n)/l),u*=60,u<0&&(u+=360)),[u,s,c]};Be.prototype.hcg=function(){return r0e(this._rgb)};const n0e=(...e)=>new Be(...e,"hcg");Tt.hcg=n0e,Ct.format.hcg=t0e,Ct.autodetect.push({p:1,test:(...e)=>{if(e=$t(e,"hcg"),Ft(e)==="array"&&e.length===3)return"hcg"}});const o0e=(e,r,n)=>Rh(e,r,n,"hcg");Eo.hcg=o0e;const{cos:Ah}=Math,a0e=(...e)=>{e=$t(e,"hsi");let[r,n,o]=e,a,i,l;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(l=(1-n)/3,a=(1+n*Ah(Ps*r)/Ah(G6-Ps*r))/3,i=1-(l+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*Ah(Ps*r)/Ah(G6-Ps*r))/3,l=1-(a+i)):(r-=2/3,i=(1-n)/3,l=(1+n*Ah(Ps*r)/Ah(G6-Ps*r))/3,a=1-(i+l)),a=yd(o*a*3),i=yd(o*i*3),l=yd(o*l*3),[a*255,i*255,l*255,e.length>3?e[3]:1]},{min:i0e,sqrt:l0e,acos:s0e}=Math,c0e=(...e)=>{let[r,n,o]=$t(e,"rgb");r/=255,n/=255,o/=255;let a;const i=i0e(r,n,o),l=(r+n+o)/3,s=l>0?1-i/l:0;return s===0?a=NaN:(a=(r-n+(r-o))/2,a/=l0e((r-n)*(r-n)+(r-o)*(n-o)),a=s0e(a),o>n&&(a=Ps-a),a/=Ps),[a*360,s,l]};Be.prototype.hsi=function(){return c0e(this._rgb)};const u0e=(...e)=>new Be(...e,"hsi");Tt.hsi=u0e,Ct.format.hsi=a0e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsi"),Ft(e)==="array"&&e.length===3)return"hsi"}});const d0e=(e,r,n)=>Rh(e,r,n,"hsi");Eo.hsi=d0e;const n_=(...e)=>{e=$t(e,"hsl");const[r,n,o]=e;let a,i,l;if(n===0)a=i=l=o*255;else{const s=[0,0,0],c=[0,0,0],u=o<.5?o*(1+n):o+n-o*n,d=2*o-u,p=r/360;s[0]=p+1/3,s[1]=p,s[2]=p-1/3;for(let f=0;f<3;f++)s[f]<0&&(s[f]+=1),s[f]>1&&(s[f]-=1),6*s[f]<1?c[f]=d+(u-d)*6*s[f]:2*s[f]<1?c[f]=u:3*s[f]<2?c[f]=d+(u-d)*(2/3-s[f])*6:c[f]=d;[a,i,l]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,l,e[3]]:[a,i,l,1]},BO=(...e)=>{e=$t(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=AO(r,n,o),i=NO(r,n,o),l=(i+a)/2;let s,c;return i===a?(s=0,c=Number.NaN):s=l<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,l,e[3]]:[c,s,l]};Be.prototype.hsl=function(){return BO(this._rgb)};const p0e=(...e)=>new Be(...e,"hsl");Tt.hsl=p0e,Ct.format.hsl=n_,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsl"),Ft(e)==="array"&&e.length===3)return"hsl"}});const h0e=(e,r,n)=>Rh(e,r,n,"hsl");Eo.hsl=h0e;const{floor:f0e}=Math,m0e=(...e)=>{e=$t(e,"hsv");let[r,n,o]=e,a,i,l;if(o*=255,n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const s=f0e(r),c=r-s,u=o*(1-n),d=o*(1-n*c),p=o*(1-n*(1-c));switch(s){case 0:[a,i,l]=[o,p,u];break;case 1:[a,i,l]=[d,o,u];break;case 2:[a,i,l]=[u,o,p];break;case 3:[a,i,l]=[u,d,o];break;case 4:[a,i,l]=[p,u,o];break;case 5:[a,i,l]=[o,u,d];break}}return[a,i,l,e.length>3?e[3]:1]},{min:g0e,max:y0e}=Math,b0e=(...e)=>{e=$t(e,"rgb");let[r,n,o]=e;const a=g0e(r,n,o),i=y0e(r,n,o),l=i-a;let s,c,u;return u=i/255,i===0?(s=Number.NaN,c=0):(c=l/i,r===i&&(s=(n-o)/l),n===i&&(s=2+(o-r)/l),o===i&&(s=4+(r-n)/l),s*=60,s<0&&(s+=360)),[s,c,u]};Be.prototype.hsv=function(){return b0e(this._rgb)};const v0e=(...e)=>new Be(...e,"hsv");Tt.hsv=v0e,Ct.format.hsv=m0e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsv"),Ft(e)==="array"&&e.length===3)return"hsv"}});const x0e=(e,r,n)=>Rh(e,r,n,"hsv");Eo.hsv=x0e;function Wv(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(l=>[l]));let o=r[0].length,a=r[0].map((l,s)=>r.map(c=>c[s])),i=e.map(l=>a.map(s=>Array.isArray(l)?l.reduce((c,u,d)=>c+u*(s[d]||0),0):s.reduce((c,u)=>c+u*l,0)));return n===1&&(i=i[0]),o===1?i.map(l=>l[0]):i}const o_=(...e)=>{e=$t(e,"lab");const[r,n,o,...a]=e,[i,l,s]=w0e([r,n,o]),[c,u,d]=MO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function w0e(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=Wv(n,e);return Wv(r,o.map(a=>a**3))}const a_=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),i=OO(r,n,o);return[...k0e(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function k0e(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=Wv(r,e);return Wv(n,o.map(a=>Math.cbrt(a)))}Be.prototype.oklab=function(){return a_(this._rgb)},Object.assign(Tt,{oklab:(...e)=>new Be(...e,"oklab")}),Ct.format.oklab=o_,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"oklab"),Ft(e)==="array"&&e.length===3)return"oklab"}});const _0e=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new Be(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};Eo.oklab=_0e;const E0e=(e,r,n)=>Rh(e,r,n,"oklch");Eo.oklch=E0e;const{pow:i_,sqrt:l_,PI:s_,cos:jO,sin:FO,atan2:S0e}=Math,C0e=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(p,f){return p+f});if(n.forEach((p,f)=>{n[f]*=a}),e=e.map(p=>new Be(p)),r==="lrgb")return T0e(e,n);const i=e.shift(),l=i.get(r),s=[];let c=0,u=0;for(let p=0;p{const g=p.get(r);d+=p.alpha()*n[f+1];for(let b=0;b=360;)f-=360;l[p]=f}else l[p]=l[p]/s[p];return d/=o,new Be(l,r).alpha(d>.99999?1:d,!0)},T0e=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a.9999999&&(o[3]=1),new Be(Y6(o))},{pow:R0e}=Math;function Gv(e){let r="rgb",n=Tt("#ccc"),o=0,a=[0,1],i=[],l=[0,0],s=!1,c=[],u=!1,d=0,p=1,f=!1,g={},b=!0,x=1;const w=function(D){if(D=D||["#fff","#000"],D&&Ft(D)==="string"&&Tt.brewer&&Tt.brewer[D.toLowerCase()]&&(D=Tt.brewer[D.toLowerCase()]),Ft(D)==="array"){D.length===1&&(D=[D[0],D[0]]),D=D.slice(0);for(let N=0;N=s[$];)$++;return $-1}return 0};let C=D=>D,_=D=>D;const T=function(D,N){let $,M;if(N==null&&(N=!1),isNaN(D)||D===null)return n;N?M=D:s&&s.length>2?M=k(D)/(s.length-2):p!==d?M=(D-d)/(p-d):M=1,M=_(M),N||(M=C(M)),x!==1&&(M=R0e(M,x)),M=l[0]+M*(1-l[0]-l[1]),M=yd(M,0,1);const j=Math.floor(M*1e4);if(b&&g[j])$=g[j];else{if(Ft(c)==="array")for(let L=0;L=Y&&L===i.length-1){$=c[L];break}if(M>Y&&Mg={};w(e);const A=function(D){const N=Tt(T(D));return u&&N[u]?N[u]():N};return A.classes=function(D){if(D!=null){if(Ft(D)==="array")s=D,a=[D[0],D[D.length-1]];else{const N=Tt.analyze(a);D===0?s=[N.min,N.max]:s=Tt.limits(N,"e",D)}return A}return s},A.domain=function(D){if(!arguments.length)return a;d=D[0],p=D[D.length-1],i=[];const N=c.length;if(D.length===N&&d!==p)for(let $ of Array.from(D))i.push(($-d)/(p-d));else{for(let $=0;$2){const $=D.map((j,L)=>L/(D.length-1)),M=D.map(j=>(j-d)/(p-d));M.every((j,L)=>$[L]===j)||(_=j=>{if(j<=0||j>=1)return j;let L=0;for(;j>=M[L+1];)L++;const Y=(j-M[L])/(M[L+1]-M[L]);return $[L]+Y*($[L+1]-$[L])})}}return a=[d,p],A},A.mode=function(D){return arguments.length?(r=D,R(),A):r},A.range=function(D,N){return w(D),A},A.out=function(D){return u=D,A},A.spread=function(D){return arguments.length?(o=D,A):o},A.correctLightness=function(D){return D==null&&(D=!0),f=D,R(),f?C=function(N){const $=T(0,!0).lab()[0],M=T(1,!0).lab()[0],j=$>M;let L=T(N,!0).lab()[0];const Y=$+(M-$)*N;let O=L-Y,U=0,I=1,q=20;for(;Math.abs(O)>.01&&q-- >0;)(function(){return j&&(O*=-1),O<0?(U=N,N+=(I-N)*.5):(I=N,N+=(U-N)*.5),L=T(N,!0).lab()[0],O=L-Y})();return N}:C=N=>N,A},A.padding=function(D){return D!=null?(Ft(D)==="number"&&(D=[D,D]),l=D,A):l},A.colors=function(D,N){arguments.length<2&&(N="hex");let $=[];if(arguments.length===0)$=c.slice(0);else if(D===1)$=[A(.5)];else if(D>1){const M=a[0],j=a[1]-M;$=A0e(0,D).map(L=>A(M+L/(D-1)*j))}else{e=[];let M=[];if(s&&s.length>2)for(let j=1,L=s.length,Y=1<=L;Y?jL;Y?j++:j--)M.push((s[j-1]+s[j])*.5);else M=a;$=M.map(j=>A(j))}return Tt[N]&&($=$.map(M=>M[N]())),$},A.cache=function(D){return D!=null?(b=D,A):b},A.gamma=function(D){return D!=null?(x=D,A):x},A.nodata=function(D){return D!=null?(n=Tt(D),A):n},A}function A0e(e,r,n){let o=[],a=ei;a?l++:l--)o.push(l);return o}const N0e=function(e){let r=[1,1];for(let n=1;nnew Be(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>n[s]+i*(o[s]-n[s]));return new Be(l,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>(1-i)*(1-i)*n[s]+2*(1-i)*i*o[s]+i*i*a[s]);return new Be(l,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(l=>l.lab()),r=function(l){const s=[0,1,2].map(c=>(1-l)*(1-l)*(1-l)*n[c]+3*(1-l)*(1-l)*l*o[c]+3*(1-l)*l*l*a[c]+l*l*l*i[c]);return new Be(s,"lab")}}else if(e.length>=5){let i,l,s;i=e.map(c=>c.lab()),s=e.length-1,l=N0e(s),r=function(c){const u=1-c,d=[0,1,2].map(p=>i.reduce((f,g,b)=>f+l[b]*u**(s-b)*c**b*g[p],0));return new Be(d,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},P0e=e=>{const r=D0e(e);return r.scale=()=>Gv(r),r},{round:HO}=Math;Be.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(HO)},Be.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:HO(r):r)},Object.assign(Tt,{rgb:(...e)=>new Be(...e,"rgb")}),Ct.format.rgb=(...e)=>{const r=$t(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Ct.autodetect.push({p:3,test:(...e)=>{if(e=$t(e,"rgba"),Ft(e)==="array"&&(e.length===3||e.length===4&&Ft(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const ji=(e,r,n)=>{if(!ji[n])throw new Error("unknown blend mode "+n);return ji[n](e,r)},Hc=e=>(r,n)=>{const o=Tt(n).rgb(),a=Tt(r).rgb();return Tt.rgb(e(o,a))},qc=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},$0e=e=>e,M0e=(e,r)=>e*r/255,O0e=(e,r)=>e>r?r:e,I0e=(e,r)=>e>r?e:r,L0e=(e,r)=>255*(1-(1-e/255)*(1-r/255)),z0e=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),B0e=(e,r)=>255*(1-(1-r/255)/(e/255)),j0e=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);ji.normal=Hc(qc($0e)),ji.multiply=Hc(qc(M0e)),ji.screen=Hc(qc(L0e)),ji.overlay=Hc(qc(z0e)),ji.darken=Hc(qc(O0e)),ji.lighten=Hc(qc(I0e)),ji.dodge=Hc(qc(j0e)),ji.burn=Hc(qc(B0e));const{pow:F0e,sin:H0e,cos:q0e}=Math;function U0e(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,l;Ft(a)==="array"?l=a[1]-a[0]:(l=0,a=[a,a]);const s=function(c){const u=Ps*((e+120)/360+r*c),d=F0e(a[0]+l*c,o),f=(i!==0?n[0]+c*i:n)*d*(1-d)/2,g=q0e(u),b=H0e(u),x=d+f*(-.14861*g+1.78277*b),w=d+f*(-.29227*g-.90649*b),k=d+f*(1.97294*g);return Tt(Y6([x*255,w*255,k*255,1]))};return s.start=function(c){return c==null?e:(e=c,s)},s.rotations=function(c){return c==null?r:(r=c,s)},s.gamma=function(c){return c==null?o:(o=c,s)},s.hue=function(c){return c==null?n:(n=c,Ft(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,s)},s.lightness=function(c){return c==null?a:(Ft(c)==="array"?(a=c,l=c[1]-c[0]):(a=[c,c],l=0),s)},s.scale=()=>Tt.scale(s),s.hue(n),s}const V0e="0123456789abcdef",{floor:Y0e,random:W0e}=Math,G0e=()=>{let e="#";for(let r=0;r<6;r++)e+=V0e.charAt(Y0e(W0e()*16));return new Be(e,"hex")},{log:qO,pow:X0e,floor:K0e,abs:Z0e}=Math;function UO(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ft(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Ft(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,on.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>VO(n,o,a),n}function VO(e,r="equal",n=7){Ft(e)=="array"&&(e=UO(e));const{min:o,max:a}=e,i=e.values.sort((s,c)=>s-c);if(n===1)return[o,a];const l=[];if(r.substr(0,1)==="c"&&(l.push(o),l.push(a)),r.substr(0,1)==="e"){l.push(o);for(let s=1;s 0");const s=Math.LOG10E*qO(o),c=Math.LOG10E*qO(a);l.push(o);for(let u=1;u200&&(p=!1)}const b={};for(let w=0;ww-k),l.push(x[0]);for(let w=1;w{e=new Be(e),r=new Be(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};/**
* @license
*
* The APCA contrast prediction algorithm is based of the formulas published
@@ -43,14 +43,14 @@ function w1e(e,r){for(var n=0;n{e=new je(e),r=new je(r),e.alpha()<1&&(e=Ch(r,e,e.alpha(),"rgb"));const n=XM(...e.rgb()),o=XM(...r.rgb()),a=n>=Xv?n:n+Math.pow(Xv-n,GM),i=o>=Xv?o:o+Math.pow(Xv-o,GM),l=Math.pow(i,.56)-Math.pow(a,.57),s=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)0?c-YM:c+YM)*100};function XM(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Os,pow:hn,min:rye,max:nye,atan2:KM,abs:ZM,cos:Kv,sin:QM,exp:oye,PI:JM}=Math;function aye(e,r,n=1,o=1,a=1){var i=function(z){return 360*z/(2*JM)},l=function(z){return 2*JM*z/360};e=new je(e),r=new je(r);const[s,c,u]=Array.from(e.lab()),[d,p,f]=Array.from(r.lab()),g=(s+d)/2,b=Os(hn(c,2)+hn(u,2)),x=Os(hn(p,2)+hn(f,2)),w=(b+x)/2,k=.5*(1-Os(hn(w,7)/(hn(w,7)+hn(25,7)))),C=c*(1+k),_=p*(1+k),T=Os(hn(C,2)+hn(u,2)),R=Os(hn(_,2)+hn(f,2)),A=(T+R)/2,D=i(KM(u,C)),N=i(KM(f,_)),P=D>=0?D:D+360,O=N>=0?N:N+360,B=ZM(P-O)>180?(P+O+360)/2:(P+O)/2,L=1-.17*Kv(l(B-30))+.24*Kv(l(2*B))+.32*Kv(l(3*B+6))-.2*Kv(l(4*B-63));let Y=O-P;Y=ZM(Y)<=180?Y:O<=P?Y+360:Y-360,Y=2*Os(T*R)*QM(l(Y)/2);const M=d-s,q=R-T,I=1+.015*hn(g-50,2)/Os(20+hn(g-50,2)),U=1+.045*A,V=1+.015*A*L,G=30*oye(-hn((B-275)/25,2)),J=-(2*Os(hn(A,7)/(hn(A,7)+hn(25,7))))*QM(2*l(G)),Q=Os(hn(M/(n*I),2)+hn(q/(o*U),2)+hn(Y/(a*V),2)+J*(q/(o*U))*(Y/(a*V)));return nye(0,rye(100,Q))}function iye(e,r,n="lab"){e=new je(e),r=new je(r);const o=e.get(n),a=r.get(n);let i=0;for(let l in o){const s=(o[l]||0)-(a[l]||0);i+=s*s}return Math.sqrt(i)}const lye=(...e)=>{try{return new je(...e),!0}catch{return!1}},sye={cool(){return Gv([Tt.hsl(180,1,.9),Tt.hsl(250,.7,.4)])},hot(){return Gv(["#000","#f00","#ff0","#fff"]).mode("rgb")}},c6={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},eI=Object.keys(c6),tI=new Map(eI.map(e=>[e.toLowerCase(),e])),cye=typeof Proxy=="function"?new Proxy(c6,{get(e,r){const n=r.toLowerCase();if(tI.has(n))return e[tI.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(eI)}}):c6,uye=(...e)=>{e=Pt(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:rI}=Math,dye=(...e)=>{let[r,n,o]=Pt(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-rI(r,rI(n,o)),i=a<1?1/(1-a):0,l=(1-r-a)*i,s=(1-n-a)*i,c=(1-o-a)*i;return[l,s,c,a]};je.prototype.cmyk=function(){return dye(this._rgb)},Object.assign(Tt,{cmyk:(...e)=>new je(...e,"cmyk")}),Ct.format.cmyk=uye,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Pt(e,"cmyk"),Ft(e)==="array"&&e.length===4)return"cmyk"}});const pye=(...e)=>{const r=Pt(e,"hsla");let n=Eh(e)||"lsa";return r[0]=Ka(r[0]||0)+"deg",r[1]=Ka(r[1]*100)+"%",r[2]=Ka(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},hye=(...e)=>{const r=Pt(e,"lab");let n=Eh(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=Ka(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},fye=(...e)=>{const r=Pt(e,"lch");let n=Eh(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},mye=(...e)=>{const r=Pt(e,"lab");return r[0]=Ka(r[0]*100)+"%",r[1]=W_(r[1]),r[2]=W_(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},nI=(...e)=>{const[r,n,o,...a]=Pt(e,"rgb"),[i,l,s]=a6(r,n,o),[c,u,d]=LM(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},gye=(...e)=>{const r=Pt(e,"lch");return r[0]=Ka(r[0]*100)+"%",r[1]=W_(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:u6}=Math,yye=(...e)=>{const r=Pt(e,"rgba");let n=Eh(e)||"rgb";if(n.substr(0,3)==="hsl")return pye(jM(r),n);if(n.substr(0,3)==="lab"){const o=f1();Ps("d50");const a=hye(Z_(r),n);return Ps(o),a}if(n.substr(0,3)==="lch"){const o=f1();Ps("d50");const a=fye(t6(r),n);return Ps(o),a}return n.substr(0,5)==="oklab"?mye(a6(r)):n.substr(0,5)==="oklch"?gye(nI(r)):(r[0]=u6(r[0]),r[1]=u6(r[1]),r[2]=u6(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},oI=(...e)=>{e=Pt(e,"lch");const[r,n,o,...a]=e,[i,l,s]=IM(r,n,o),[c,u,d]=o6(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},Ms=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,Zv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Za=/\s*/.source,Nh=/\s+/.source,d6=/\s*,\s*/.source,Qv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Dh=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,aI=new RegExp("^rgba?\\("+Za+[Ms,Ms,Ms].join(Nh)+Dh+"\\)$"),iI=new RegExp("^rgb\\("+Za+[Ms,Ms,Ms].join(d6)+Za+"\\)$"),lI=new RegExp("^rgba\\("+Za+[Ms,Ms,Ms,Fi].join(d6)+Za+"\\)$"),sI=new RegExp("^hsla?\\("+Za+[Qv,Zv,Zv].join(Nh)+Dh+"\\)$"),cI=new RegExp("^hsl?\\("+Za+[Qv,Zv,Zv].join(d6)+Za+"\\)$"),uI=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,dI=new RegExp("^lab\\("+Za+[Fi,Fi,Fi].join(Nh)+Dh+"\\)$"),pI=new RegExp("^lch\\("+Za+[Fi,Fi,Qv].join(Nh)+Dh+"\\)$"),hI=new RegExp("^oklab\\("+Za+[Fi,Fi,Fi].join(Nh)+Dh+"\\)$"),fI=new RegExp("^oklch\\("+Za+[Fi,Fi,Qv].join(Nh)+Dh+"\\)$"),{round:mI}=Math,$h=e=>e.map((r,n)=>n<=2?yd(mI(r),0,255):r),fn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),Bo=(e,r)=>e==="none"?r:e,p6=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Ct.format.named)try{return Ct.format.named(e)}catch{}if((r=e.match(aI))||(r=e.match(iI))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+fn(Bo(n[a],0),0,255);n=$h(n);const o=r[4]!==void 0?+fn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(lI)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+fn(n[o],0,255);return n}if((r=e.match(sI))||(r=e.match(cI))){const n=r.slice(1,4);n[0]=+Bo(n[0].replace("deg",""),0),n[1]=+fn(Bo(n[1],0),0,100)*.01,n[2]=+fn(Bo(n[2],0),0,100)*.01;const o=$h(n6(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(uI)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=n6(n);for(let a=0;a<3;a++)o[a]=mI(o[a]);return o[3]=+r[4],o}if(r=e.match(dI)){const n=r.slice(1,4);n[0]=fn(Bo(n[0],0),0,100),n[1]=fn(Bo(n[1],0),-125,125,!0),n[2]=fn(Bo(n[2],0),-125,125,!0);const o=f1();Ps("d50");const a=$h(X_(n));Ps(o);const i=r[4]!==void 0?+fn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(pI)){const n=r.slice(1,4);n[0]=fn(n[0],0,100),n[1]=fn(Bo(n[1],0),0,150,!1),n[2]=+Bo(n[2].replace("deg",""),0);const o=f1();Ps("d50");const a=$h(e6(n));Ps(o);const i=r[4]!==void 0?+fn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(hI)){const n=r.slice(1,4);n[0]=fn(Bo(n[0],0),0,1),n[1]=fn(Bo(n[1],0),-.4,.4,!0),n[2]=fn(Bo(n[2],0),-.4,.4,!0);const o=$h(o6(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(fI)){const n=r.slice(1,4);n[0]=fn(Bo(n[0],0),0,1),n[1]=fn(Bo(n[1],0),0,.4,!1),n[2]=+Bo(n[2].replace("deg",""),0);const o=$h(oI(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}};p6.test=e=>aI.test(e)||sI.test(e)||dI.test(e)||pI.test(e)||hI.test(e)||fI.test(e)||iI.test(e)||lI.test(e)||cI.test(e)||uI.test(e)||e==="transparent",je.prototype.css=function(e){return yye(this._rgb,e)};const bye=(...e)=>new je(...e,"css");Tt.css=bye,Ct.format.css=p6,Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&p6.test(e))return"css"}}),Ct.format.gl=(...e)=>{const r=Pt(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const vye=(...e)=>new je(...e,"gl");Tt.gl=vye,je.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},je.prototype.hex=function(e){return PM(this._rgb,e)};const xye=(...e)=>new je(...e,"hex");Tt.hex=xye,Ct.format.hex=$M,Ct.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Jv}=Math,gI=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*Jv(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*Jv(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*Jv(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*Jv(o),a=255),[n,o,a,1]},{round:wye}=Math,kye=(...e)=>{const r=Pt(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const l=.4;let s;for(;i-a>l;){s=(i+a)*.5;const c=gI(s);c[2]/c[0]>=o/n?i=s:a=s}return wye(s)};je.prototype.temp=je.prototype.kelvin=je.prototype.temperature=function(){return kye(this._rgb)};const h6=(...e)=>new je(...e,"temp");Object.assign(Tt,{temp:h6,kelvin:h6,temperature:h6}),Ct.format.temp=Ct.format.kelvin=Ct.format.temperature=gI,je.prototype.oklch=function(){return nI(this._rgb)},Object.assign(Tt,{oklch:(...e)=>new je(...e,"oklch")}),Ct.format.oklch=oI,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Pt(e,"oklch"),Ft(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Tt,{analyze:qM,average:C0e,bezier:$0e,blend:Bi,brewer:cye,Color:je,colors:Sh,contrast:Q0e,contrastAPCA:tye,cubehelix:q0e,deltaE:aye,distance:iye,input:Ct,interpolate:Ch,limits:VM,mix:Ch,random:G0e,scale:Gv,scales:sye,valid:lye});const f6=[.96,.907,.805,.697,.605,.547,.518,.445,.395,.34],yI=[.32,.16,.08,.04,0,0,.04,.08,.16,.32];function _ye(e){const r=e.get("hsl.l");return f6.reduce((n,o)=>Math.abs(o-r)i===n),a=f6.map(i=>r.set("hsl.l",i)).map(i=>Tt(i)).map((i,l)=>{const s=yI[l]-yI[o];return s>=0?i.saturate(s):i.desaturate(s*-1)});return a[o]=Tt(e),{baseColorIndex:o,colors:a}}function Sye(e){return Eye(e).colors.map(r=>r.hex())}function Cye(...e){return ba(Tye,e)}function Tye(e,r){let n={};for(let[o,a]of e.entries())n[a]=r(a,o,e);return n}function m6(...e){return ba(m1,e)}function m1(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return Rye(e,r);if(e instanceof Map)return Aye(e,r);if(e instanceof Set)return Nye(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!m1(o,r[n]))return!1;return!0}function Rye(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!m1(o,r[n]))return!1;return!0}function Aye(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!m1(o,r.get(n)))return!1;return!0}function Nye(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,l]of n.entries())if(m1(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}const bI={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},vI={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},xI={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},Dye={primary:bI,blue:bI,secondary:vI,sky:vI,muted:xI,slate:xI,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#f5b2a3"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#f9b27c"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}},$ye={line:"#6E6E6E",labelBg:"#18191b",label:"#C6C6C6"},wI={line:"#64748b",labelBg:"#0f172a",label:"#cbd5e1"},kI={line:"#3b82f6",labelBg:"#172554",label:"#60a5fa"},_I={line:"#0ea5e9",labelBg:"#082f49",label:"#38bdf8"},Pye={amber:{line:"#b45309",labelBg:"#78350f",label:"#FFE0C2"},blue:kI,gray:$ye,green:{line:"#15803d",labelBg:"#052e16",label:"#22c55e"},indigo:{line:"#6366f1",labelBg:"#1e1b4b",label:"#818cf8"},muted:wI,primary:kI,red:{line:"#AC4D39",labelBg:"#b91c1c",label:"#f5b2a3"},secondary:_I,sky:_I,slate:wI},EI=60,SI=2,CI=1;function Oye(e){nt(Tt.valid(e),`Invalid color: ${e}`);const r=Sye(e),n=r[6],o=Mye(n);return{elements:{fill:n,stroke:r[7],hiContrast:o[0],loContrast:o[1]},relationships:{line:r[4],label:r[3],labelBg:r[9]}}}function Mye(e){const r=Tt(e);let n=r.brighten(SI),o=r.darken(SI),a,i,l,s;do a=n,i=o,n=n.brighten(CI),o=o.darken(CI),l=Tt.contrastAPCA(r,n),s=Tt.contrastAPCA(r,o);while(Math.abs(l)Math.abs(s)?[n.brighten(.4).hex(),n.hex()]:[o.darken(.4).hex(),o.hex()]}const Iye=["rectangle","person","browser","mobile","cylinder","storage","queue"],Lye={colors:Cye(["amber","blue","gray","slate","green","indigo","muted","primary","red","secondary","sky"],e=>({elements:Dye[e],relationships:Pye[e]})),sizes:{xs:{width:180,height:100},sm:{width:240,height:135},md:{width:320,height:180},lg:{width:420,height:234},xl:{width:520,height:290}},spacing:{xs:8,sm:10,md:16,lg:24,xl:32},textSizes:{xs:13.33,sm:16,md:19.2,lg:23.04,xl:27.65}};function g6(e){if(e===null||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);return r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function y6(e,r,n=".",o){if(!g6(r))return y6(e,{},n);const a=Object.assign({},r);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const l=e[i];l!=null&&(Array.isArray(l)&&Array.isArray(a[i])?a[i]=[...l,...a[i]]:g6(l)&&g6(a[i])?a[i]=y6(l,a[i],(n?`${n}.`:"")+i.toString()):a[i]=l)}return a}function zye(e){return(...r)=>r.reduce((n,o)=>y6(n,o,""),{})}const jye=zye();function e3({size:e,padding:r,textSize:n,...o},a=b6.defaults.size){return e??=a,n??=e,r??=e,{...o,size:e,padding:r,textSize:n}}const b6={theme:Lye,defaults:{color:"primary",size:"md",opacity:15,shape:"rectangle",group:{opacity:15,border:"dashed"},relationship:{color:"gray",line:"dashed",arrow:"normal"}}};let TI=class bM{constructor(r){this.config=r,this.theme=r.theme,this.defaults=r.defaults}theme;defaults;static DEFAULT=new bM(b6);static from(...r){return _h(r,1)?new bM(jye(...r,b6)):this.DEFAULT}get elementColors(){return this.theme.colors[this.defaults.color].elements}get relationshipColors(){return this.theme.colors[this.defaults.relationship.color].relationships}get groupColors(){const r=this.defaults.group?.color;return r?cr(this,"defaultGroup",()=>({...this.elementColors,...this.theme.colors[r].elements})):this.elementColors}isDefaultColor(r){return r===this.defaults.color}colors(r){if(r??=this.defaults.color,this.isThemeColor(r))return this.theme.colors[r];throw new Error(`Unknown color: ${r}`)}fontSize(r){return r??=this.defaults.text??this.defaults.size,this.theme.textSizes[r]}padding(r){return r??=this.defaults.padding??this.defaults.size,this.theme.spacing[r]}isThemeColor(r){return r in this.theme.colors}nodeSizes(r){const n=e3(r,this.defaults.size);return{sizes:n,values:{sizes:this.theme.sizes[n.size],padding:this.padding(n.padding),textSize:this.fontSize(n.textSize)}}}computeFrom(r){if(this.isThemeColor(r))return this.theme.colors[r];if(!Tt.valid(r))throw new Error(`Invalid color value: "${r}"`);return cr(this,`compute-${r}`,()=>Oye(r))}equals(r){return r===this?!0:m6(this.config,r.config)}};function t3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qc(e){return typeof e=="string"}var v6={exports:{}},RI;function Bye(){if(RI)return v6.exports;RI=1;/*
+ */const YO=.027,J0e=5e-4,eye=.1,WO=1.14,Xv=.022,GO=1.414,tye=(e,r)=>{e=new Be(e),r=new Be(r),e.alpha()<1&&(e=Ch(r,e,e.alpha(),"rgb"));const n=XO(...e.rgb()),o=XO(...r.rgb()),a=n>=Xv?n:n+Math.pow(Xv-n,GO),i=o>=Xv?o:o+Math.pow(Xv-o,GO),l=Math.pow(i,.56)-Math.pow(a,.57),s=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)0?c-YO:c+YO)*100};function XO(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Ms,pow:hn,min:rye,max:nye,atan2:KO,abs:ZO,cos:Kv,sin:QO,exp:oye,PI:JO}=Math;function aye(e,r,n=1,o=1,a=1){var i=function(z){return 360*z/(2*JO)},l=function(z){return 2*JO*z/360};e=new Be(e),r=new Be(r);const[s,c,u]=Array.from(e.lab()),[d,p,f]=Array.from(r.lab()),g=(s+d)/2,b=Ms(hn(c,2)+hn(u,2)),x=Ms(hn(p,2)+hn(f,2)),w=(b+x)/2,k=.5*(1-Ms(hn(w,7)/(hn(w,7)+hn(25,7)))),C=c*(1+k),_=p*(1+k),T=Ms(hn(C,2)+hn(u,2)),R=Ms(hn(_,2)+hn(f,2)),A=(T+R)/2,D=i(KO(u,C)),N=i(KO(f,_)),$=D>=0?D:D+360,M=N>=0?N:N+360,j=ZO($-M)>180?($+M+360)/2:($+M)/2,L=1-.17*Kv(l(j-30))+.24*Kv(l(2*j))+.32*Kv(l(3*j+6))-.2*Kv(l(4*j-63));let Y=M-$;Y=ZO(Y)<=180?Y:M<=$?Y+360:Y-360,Y=2*Ms(T*R)*QO(l(Y)/2);const O=d-s,U=R-T,I=1+.015*hn(g-50,2)/Ms(20+hn(g-50,2)),q=1+.045*A,V=1+.015*A*L,G=30*oye(-hn((j-275)/25,2)),J=-(2*Ms(hn(A,7)/(hn(A,7)+hn(25,7))))*QO(2*l(G)),Q=Ms(hn(O/(n*I),2)+hn(U/(o*q),2)+hn(Y/(a*V),2)+J*(U/(o*q))*(Y/(a*V)));return nye(0,rye(100,Q))}function iye(e,r,n="lab"){e=new Be(e),r=new Be(r);const o=e.get(n),a=r.get(n);let i=0;for(let l in o){const s=(o[l]||0)-(a[l]||0);i+=s*s}return Math.sqrt(i)}const lye=(...e)=>{try{return new Be(...e),!0}catch{return!1}},sye={cool(){return Gv([Tt.hsl(180,1,.9),Tt.hsl(250,.7,.4)])},hot(){return Gv(["#000","#f00","#ff0","#fff"]).mode("rgb")}},c_={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},eI=Object.keys(c_),tI=new Map(eI.map(e=>[e.toLowerCase(),e])),cye=typeof Proxy=="function"?new Proxy(c_,{get(e,r){const n=r.toLowerCase();if(tI.has(n))return e[tI.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(eI)}}):c_,uye=(...e)=>{e=$t(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:rI}=Math,dye=(...e)=>{let[r,n,o]=$t(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-rI(r,rI(n,o)),i=a<1?1/(1-a):0,l=(1-r-a)*i,s=(1-n-a)*i,c=(1-o-a)*i;return[l,s,c,a]};Be.prototype.cmyk=function(){return dye(this._rgb)},Object.assign(Tt,{cmyk:(...e)=>new Be(...e,"cmyk")}),Ct.format.cmyk=uye,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"cmyk"),Ft(e)==="array"&&e.length===4)return"cmyk"}});const pye=(...e)=>{const r=$t(e,"hsla");let n=Eh(e)||"lsa";return r[0]=Ka(r[0]||0)+"deg",r[1]=Ka(r[1]*100)+"%",r[2]=Ka(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},hye=(...e)=>{const r=$t(e,"lab");let n=Eh(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=Ka(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},fye=(...e)=>{const r=$t(e,"lch");let n=Eh(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},mye=(...e)=>{const r=$t(e,"lab");return r[0]=Ka(r[0]*100)+"%",r[1]=W6(r[1]),r[2]=W6(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},nI=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=a_(r,n,o),[c,u,d]=LO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},gye=(...e)=>{const r=$t(e,"lch");return r[0]=Ka(r[0]*100)+"%",r[1]=W6(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:u_}=Math,yye=(...e)=>{const r=$t(e,"rgba");let n=Eh(e)||"rgb";if(n.substr(0,3)==="hsl")return pye(BO(r),n);if(n.substr(0,3)==="lab"){const o=f1();$s("d50");const a=hye(Z6(r),n);return $s(o),a}if(n.substr(0,3)==="lch"){const o=f1();$s("d50");const a=fye(t_(r),n);return $s(o),a}return n.substr(0,5)==="oklab"?mye(a_(r)):n.substr(0,5)==="oklch"?gye(nI(r)):(r[0]=u_(r[0]),r[1]=u_(r[1]),r[2]=u_(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},oI=(...e)=>{e=$t(e,"lch");const[r,n,o,...a]=e,[i,l,s]=IO(r,n,o),[c,u,d]=o_(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},Os=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,Zv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Za=/\s*/.source,Nh=/\s+/.source,d_=/\s*,\s*/.source,Qv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Dh=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,aI=new RegExp("^rgba?\\("+Za+[Os,Os,Os].join(Nh)+Dh+"\\)$"),iI=new RegExp("^rgb\\("+Za+[Os,Os,Os].join(d_)+Za+"\\)$"),lI=new RegExp("^rgba\\("+Za+[Os,Os,Os,Fi].join(d_)+Za+"\\)$"),sI=new RegExp("^hsla?\\("+Za+[Qv,Zv,Zv].join(Nh)+Dh+"\\)$"),cI=new RegExp("^hsl?\\("+Za+[Qv,Zv,Zv].join(d_)+Za+"\\)$"),uI=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,dI=new RegExp("^lab\\("+Za+[Fi,Fi,Fi].join(Nh)+Dh+"\\)$"),pI=new RegExp("^lch\\("+Za+[Fi,Fi,Qv].join(Nh)+Dh+"\\)$"),hI=new RegExp("^oklab\\("+Za+[Fi,Fi,Fi].join(Nh)+Dh+"\\)$"),fI=new RegExp("^oklch\\("+Za+[Fi,Fi,Qv].join(Nh)+Dh+"\\)$"),{round:mI}=Math,Ph=e=>e.map((r,n)=>n<=2?yd(mI(r),0,255):r),fn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),jo=(e,r)=>e==="none"?r:e,p_=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Ct.format.named)try{return Ct.format.named(e)}catch{}if((r=e.match(aI))||(r=e.match(iI))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+fn(jo(n[a],0),0,255);n=Ph(n);const o=r[4]!==void 0?+fn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(lI)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+fn(n[o],0,255);return n}if((r=e.match(sI))||(r=e.match(cI))){const n=r.slice(1,4);n[0]=+jo(n[0].replace("deg",""),0),n[1]=+fn(jo(n[1],0),0,100)*.01,n[2]=+fn(jo(n[2],0),0,100)*.01;const o=Ph(n_(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(uI)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=n_(n);for(let a=0;a<3;a++)o[a]=mI(o[a]);return o[3]=+r[4],o}if(r=e.match(dI)){const n=r.slice(1,4);n[0]=fn(jo(n[0],0),0,100),n[1]=fn(jo(n[1],0),-125,125,!0),n[2]=fn(jo(n[2],0),-125,125,!0);const o=f1();$s("d50");const a=Ph(X6(n));$s(o);const i=r[4]!==void 0?+fn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(pI)){const n=r.slice(1,4);n[0]=fn(n[0],0,100),n[1]=fn(jo(n[1],0),0,150,!1),n[2]=+jo(n[2].replace("deg",""),0);const o=f1();$s("d50");const a=Ph(e_(n));$s(o);const i=r[4]!==void 0?+fn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(hI)){const n=r.slice(1,4);n[0]=fn(jo(n[0],0),0,1),n[1]=fn(jo(n[1],0),-.4,.4,!0),n[2]=fn(jo(n[2],0),-.4,.4,!0);const o=Ph(o_(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(fI)){const n=r.slice(1,4);n[0]=fn(jo(n[0],0),0,1),n[1]=fn(jo(n[1],0),0,.4,!1),n[2]=+jo(n[2].replace("deg",""),0);const o=Ph(oI(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}};p_.test=e=>aI.test(e)||sI.test(e)||dI.test(e)||pI.test(e)||hI.test(e)||fI.test(e)||iI.test(e)||lI.test(e)||cI.test(e)||uI.test(e)||e==="transparent",Be.prototype.css=function(e){return yye(this._rgb,e)};const bye=(...e)=>new Be(...e,"css");Tt.css=bye,Ct.format.css=p_,Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&p_.test(e))return"css"}}),Ct.format.gl=(...e)=>{const r=$t(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const vye=(...e)=>new Be(...e,"gl");Tt.gl=vye,Be.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},Be.prototype.hex=function(e){return $O(this._rgb,e)};const xye=(...e)=>new Be(...e,"hex");Tt.hex=xye,Ct.format.hex=PO,Ct.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Jv}=Math,gI=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*Jv(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*Jv(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*Jv(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*Jv(o),a=255),[n,o,a,1]},{round:wye}=Math,kye=(...e)=>{const r=$t(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const l=.4;let s;for(;i-a>l;){s=(i+a)*.5;const c=gI(s);c[2]/c[0]>=o/n?i=s:a=s}return wye(s)};Be.prototype.temp=Be.prototype.kelvin=Be.prototype.temperature=function(){return kye(this._rgb)};const h_=(...e)=>new Be(...e,"temp");Object.assign(Tt,{temp:h_,kelvin:h_,temperature:h_}),Ct.format.temp=Ct.format.kelvin=Ct.format.temperature=gI,Be.prototype.oklch=function(){return nI(this._rgb)},Object.assign(Tt,{oklch:(...e)=>new Be(...e,"oklch")}),Ct.format.oklch=oI,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"oklch"),Ft(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Tt,{analyze:UO,average:C0e,bezier:P0e,blend:ji,brewer:cye,Color:Be,colors:Sh,contrast:Q0e,contrastAPCA:tye,cubehelix:U0e,deltaE:aye,distance:iye,input:Ct,interpolate:Ch,limits:VO,mix:Ch,random:G0e,scale:Gv,scales:sye,valid:lye});const f_=[.96,.907,.805,.697,.605,.547,.518,.445,.395,.34],yI=[.32,.16,.08,.04,0,0,.04,.08,.16,.32];function _ye(e){const r=e.get("hsl.l");return f_.reduce((n,o)=>Math.abs(o-r)i===n),a=f_.map(i=>r.set("hsl.l",i)).map(i=>Tt(i)).map((i,l)=>{const s=yI[l]-yI[o];return s>=0?i.saturate(s):i.desaturate(s*-1)});return a[o]=Tt(e),{baseColorIndex:o,colors:a}}function Sye(e){return Eye(e).colors.map(r=>r.hex())}function Cye(...e){return ba(Tye,e)}function Tye(e,r){let n={};for(let[o,a]of e.entries())n[a]=r(a,o,e);return n}function m_(...e){return ba(m1,e)}function m1(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return Rye(e,r);if(e instanceof Map)return Aye(e,r);if(e instanceof Set)return Nye(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!m1(o,r[n]))return!1;return!0}function Rye(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!m1(o,r[n]))return!1;return!0}function Aye(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!m1(o,r.get(n)))return!1;return!0}function Nye(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,l]of n.entries())if(m1(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}const bI={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},vI={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},xI={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},Dye={primary:bI,blue:bI,secondary:vI,sky:vI,muted:xI,slate:xI,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#f5b2a3"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#f9b27c"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}},Pye={line:"#6E6E6E",labelBg:"#18191b",label:"#C6C6C6"},wI={line:"#64748b",labelBg:"#0f172a",label:"#cbd5e1"},kI={line:"#3b82f6",labelBg:"#172554",label:"#60a5fa"},_I={line:"#0ea5e9",labelBg:"#082f49",label:"#38bdf8"},$ye={amber:{line:"#b45309",labelBg:"#78350f",label:"#FFE0C2"},blue:kI,gray:Pye,green:{line:"#15803d",labelBg:"#052e16",label:"#22c55e"},indigo:{line:"#6366f1",labelBg:"#1e1b4b",label:"#818cf8"},muted:wI,primary:kI,red:{line:"#AC4D39",labelBg:"#b91c1c",label:"#f5b2a3"},secondary:_I,sky:_I,slate:wI},EI=60,SI=2,CI=1;function Mye(e){nt(Tt.valid(e),`Invalid color: ${e}`);const r=Sye(e),n=r[6],o=Oye(n);return{elements:{fill:n,stroke:r[7],hiContrast:o[0],loContrast:o[1]},relationships:{line:r[4],label:r[3],labelBg:r[9]}}}function Oye(e){const r=Tt(e);let n=r.brighten(SI),o=r.darken(SI),a,i,l,s;do a=n,i=o,n=n.brighten(CI),o=o.darken(CI),l=Tt.contrastAPCA(r,n),s=Tt.contrastAPCA(r,o);while(Math.abs(l)Math.abs(s)?[n.brighten(.4).hex(),n.hex()]:[o.darken(.4).hex(),o.hex()]}const Iye=["rectangle","person","browser","mobile","cylinder","storage","queue"],Lye={colors:Cye(["amber","blue","gray","slate","green","indigo","muted","primary","red","secondary","sky"],e=>({elements:Dye[e],relationships:$ye[e]})),sizes:{xs:{width:180,height:100},sm:{width:240,height:135},md:{width:320,height:180},lg:{width:420,height:234},xl:{width:520,height:290}},spacing:{xs:8,sm:10,md:16,lg:24,xl:32},textSizes:{xs:13.33,sm:16,md:19.2,lg:23.04,xl:27.65}};function g_(e){if(e===null||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);return r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function y_(e,r,n=".",o){if(!g_(r))return y_(e,{},n);const a=Object.assign({},r);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const l=e[i];l!=null&&(Array.isArray(l)&&Array.isArray(a[i])?a[i]=[...l,...a[i]]:g_(l)&&g_(a[i])?a[i]=y_(l,a[i],(n?`${n}.`:"")+i.toString()):a[i]=l)}return a}function zye(e){return(...r)=>r.reduce((n,o)=>y_(n,o,""),{})}const Bye=zye();function e3({size:e,padding:r,textSize:n,...o},a=b_.defaults.size){return e??=a,n??=e,r??=e,{...o,size:e,padding:r,textSize:n}}const b_={theme:Lye,defaults:{color:"primary",size:"md",opacity:15,shape:"rectangle",group:{opacity:15,border:"dashed"},relationship:{color:"gray",line:"dashed",arrow:"normal"}}};let TI=class bO{constructor(r){this.config=r,this.theme=r.theme,this.defaults=r.defaults}theme;defaults;static DEFAULT=new bO(b_);static from(...r){return _h(r,1)?new bO(Bye(...r,b_)):this.DEFAULT}get elementColors(){return this.theme.colors[this.defaults.color].elements}get relationshipColors(){return this.theme.colors[this.defaults.relationship.color].relationships}get groupColors(){const r=this.defaults.group?.color;return r?cr(this,"defaultGroup",()=>({...this.elementColors,...this.theme.colors[r].elements})):this.elementColors}isDefaultColor(r){return r===this.defaults.color}colors(r){if(r??=this.defaults.color,this.isThemeColor(r))return this.theme.colors[r];throw new Error(`Unknown color: ${r}`)}fontSize(r){return r??=this.defaults.text??this.defaults.size,this.theme.textSizes[r]}padding(r){return r??=this.defaults.padding??this.defaults.size,this.theme.spacing[r]}isThemeColor(r){return r in this.theme.colors}nodeSizes(r){const n=e3(r,this.defaults.size);return{sizes:n,values:{sizes:this.theme.sizes[n.size],padding:this.padding(n.padding),textSize:this.fontSize(n.textSize)}}}computeFrom(r){if(this.isThemeColor(r))return this.theme.colors[r];if(!Tt.valid(r))throw new Error(`Invalid color value: "${r}"`);return cr(this,`compute-${r}`,()=>Mye(r))}equals(r){return r===this?!0:m_(this.config,r.config)}};function t3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uc(e){return typeof e=="string"}var v_={exports:{}},RI;function jye(){if(RI)return v_.exports;RI=1;/*
* @version 1.4.0
* @date 2015-10-26
* @stability 3 - Stable
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
* @license MIT License
- */var e=function(r,n){var o,a,i=1,l=0,s=0,c=String.alphabet;function u(d,p,f){if(f){for(o=p;f=u(d,o),f<76&&f>65;)++o;return+d.slice(p-1,o)}return f=c&&c.indexOf(d.charAt(p)),f>-1?f+76:(f=d.charCodeAt(p)||0,f<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-63)}if((r+="")!=(n+="")){for(;i;)if(a=u(r,l++),i=u(n,s++),a<76&&i<76&&a>66&&i>66&&(a=u(r,l,l),i=u(n,s,l=o),s=o),a!=i)return a{if(n===o)return 0;if(!n)return-1;if(!o)return 1;const a=n.split(e),i=o.split(e),l=Math.min(a.length,i.length);for(let c=0;c0?e.slice(0,r):null}function g1(e){const r=e.lastIndexOf(".");return r>0?e.slice(r+1):e}const y1=e=>x6(e)?e:e.id;function Un(e,r){const n=y1(e);return r?y1(r).startsWith(n+"."):o=>{const a=y1(o);return n.startsWith(a+".")}}function DI(e,r){if(!r)return a=>DI(e,a);const n=y1(e),o=y1(r);return n===o||o.startsWith(n+".")||n.startsWith(o+".")}function $I(e,r){return n=>Un(e,n)}function o3(e){return(x6(e)?e:e.id).split(".").length}function b1(e,r){const n=e.split(".");if(n.length<2)return null;const o=r.split(".");if(o.length<2)return null;let a=[];for(let i=0;ia===0?(n.push(o),n):(n.unshift(`${n[0]}.${o}`),n),[])}function Hye(e,r){let n=r;for(const o of e)Un(o,n)&&(n=o);return n!==r?n:null}function Vc(e){const r=[],n=[...e];let o;for(;o=n.shift();){let a;for(;a=Hye(n,o);)r.push(n.splice(n.indexOf(a),1)[0]);r.push(o)}return r}function PI(e,r){if(!e||x6(e)){const o=e??"asc";return a=>PI(a,o)}const n=r==="desc"?-1:1;return e.map(o=>({item:o,fqn:o.id.split(".")})).sort((o,a)=>{if(o.fqn.length!==a.fqn.length)return(o.fqn.length-a.fqn.length)*n;for(let i=0;io)}var a3={},OI;function Uye(){return OI||(OI=1,a3.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",a3.SYMBOL_SUPPORT=typeof Symbol<"u"),a3}var w6,MI;function qye(){if(MI)return w6;MI=1;function e(r){if(typeof r!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=r}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var r=arguments,n=r.length,o=0;return new e(function(){return o>=n?{done:!0}:{done:!1,value:r[o++]}})},e.empty=function(){var r=new e(function(){return{done:!0}});return r},e.fromSequence=function(r){var n=0,o=r.length;return new e(function(){return n>=o?{done:!0}:{done:!1,value:r[n++]}})},e.is=function(r){return r instanceof e?!0:typeof r=="object"&&r!==null&&typeof r.next=="function"},w6=e,w6}var k6,II;function Vye(){if(II)return k6;II=1;var e=Uye(),r=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return k6=function(a,i){var l,s,c,u,d;if(!a)throw new Error("obliterator/forEach: invalid iterable.");if(typeof i!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(a)||r&&ArrayBuffer.isView(a)||typeof a=="string"||a.toString()==="[object Arguments]"){for(c=0,u=a.length;c=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,o}},n.prototype.peek=function(){if(this.size)return this.items[this.offset]},n.prototype.forEach=function(o,a){a=arguments.length>1?a:this;for(var i=this.offset,l=0,s=this.items.length;i=o.length)return{done:!0};var i=o[a];return a++,{value:i,done:!1}})},n.prototype.entries=function(){var o=this.items,a=this.offset,i=0;return new e(function(){if(a>=o.length)return{done:!0};var l=o[a];return a++,{value:[i++,l],done:!1}})},typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=n.prototype.values),n.prototype.toString=function(){return this.toArray().join(",")},n.prototype.toJSON=function(){return this.toArray()},n.prototype.inspect=function(){var o=this.toArray();return Object.defineProperty(o,"constructor",{value:n,enumerable:!1}),o},typeof Symbol<"u"&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),n.from=function(o){var a=new n;return r(o,function(i){a.enqueue(i)}),a},n.of=function(){return n.from(arguments)},_6=n,_6}var Wye=Yye();const E6=t3(Wye);var S6,zI;function Gye(){if(zI)return S6;zI=1;function e(r){if(typeof r!="function")throw new Error("mnemonist/DefaultMap.constructor: expecting a function.");this.items=new Map,this.factory=r,this.size=0}return e.prototype.clear=function(){this.items.clear(),this.size=0},e.prototype.get=function(r){var n=this.items.get(r);return typeof n>"u"&&(n=this.factory(r,this.size),this.items.set(r,n),this.size++),n},e.prototype.peek=function(r){return this.items.get(r)},e.prototype.set=function(r,n){return this.items.set(r,n),this.size=this.items.size,this},e.prototype.has=function(r){return this.items.has(r)},e.prototype.delete=function(r){var n=this.items.delete(r);return this.size=this.items.size,n},e.prototype.forEach=function(r,n){n=arguments.length>1?n:this,this.items.forEach(r,n)},e.prototype.entries=function(){return this.items.entries()},e.prototype.keys=function(){return this.items.keys()},e.prototype.values=function(){return this.items.values()},typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=e.prototype.entries),e.prototype.inspect=function(){return this.items},typeof Symbol<"u"&&(e.prototype[Symbol.for("nodejs.util.inspect.custom")]=e.prototype.inspect),e.autoIncrement=function(){var r=0;return function(){return r++}},S6=e,S6}var Xye=Gye();const so=t3(Xye);function i3(e){return e.summary??e.description}function l3(e){return e.description??e.summary}function Is(e){return!!e}const vd="@group";function Kye(e){return e.kind===vd}function jI(e,r){return nt(typeof e=="string"&&e!=""),"@"+e+"."+r}function Zye(e){return e.startsWith("@")}function Qye(e){if(!e.startsWith("@"))return[null,e];const r=e.indexOf(".");if(r<2)throw new Error("Invalid global FQN");const n=e.slice(1,r),o=e.slice(r+1);return[n,o]}function v1(e){return e.startsWith("step-")}function BI(e){if(!v1(e))throw new Error(`Invalid step edge id: ${e}`);return parseFloat(e.slice(5))}const FI=-1,s3=0,x1=1,c3=2,C6=3,T6=4,R6=5,A6=6,HI=7,UI=8,qI=typeof self=="object"?self:globalThis,Jye=(e,r)=>{const n=(a,i)=>(e.set(i,a),a),o=a=>{if(e.has(a))return e.get(a);const[i,l]=r[a];switch(i){case s3:case FI:return n(l,a);case x1:{const s=n([],a);for(const c of l)s.push(o(c));return s}case c3:{const s=n({},a);for(const[c,u]of l)s[o(c)]=o(u);return s}case C6:return n(new Date(l),a);case T6:{const{source:s,flags:c}=l;return n(new RegExp(s,c),a)}case R6:{const s=n(new Map,a);for(const[c,u]of l)s.set(o(c),o(u));return s}case A6:{const s=n(new Set,a);for(const c of l)s.add(o(c));return s}case HI:{const{name:s,message:c}=l;return n(new qI[s](c),a)}case UI:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return n(new DataView(s),l)}}return n(new qI[i](l),a)};return o},VI=e=>Jye(new Map,e)(0),Ph="",{toString:ebe}={},{keys:tbe}=Object,w1=e=>{const r=typeof e;if(r!=="object"||!e)return[s3,r];const n=ebe.call(e).slice(8,-1);switch(n){case"Array":return[x1,Ph];case"Object":return[c3,Ph];case"Date":return[C6,Ph];case"RegExp":return[T6,Ph];case"Map":return[R6,Ph];case"Set":return[A6,Ph];case"DataView":return[x1,n]}return n.includes("Array")?[x1,n]:n.includes("Error")?[HI,n]:[c3,n]},u3=([e,r])=>e===s3&&(r==="function"||r==="symbol"),rbe=(e,r,n,o)=>{const a=(l,s)=>{const c=o.push(l)-1;return n.set(s,c),c},i=l=>{if(n.has(l))return n.get(l);let[s,c]=w1(l);switch(s){case s3:{let d=l;switch(c){case"bigint":s=UI,d=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return a([FI],l)}return a([s,d],l)}case x1:{if(c){let f=l;return c==="DataView"?f=new Uint8Array(l.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(l)),a([c,[...f]],l)}const d=[],p=a([s,d],l);for(const f of l)d.push(i(f));return p}case c3:{if(c)switch(c){case"BigInt":return a([c,l.toString()],l);case"Boolean":case"Number":case"String":return a([c,l.valueOf()],l)}if(r&&"toJSON"in l)return i(l.toJSON());const d=[],p=a([s,d],l);for(const f of tbe(l))(e||!u3(w1(l[f])))&&d.push([i(f),i(l[f])]);return p}case C6:return a([s,l.toISOString()],l);case T6:{const{source:d,flags:p}=l;return a([s,{source:d,flags:p}],l)}case R6:{const d=[],p=a([s,d],l);for(const[f,g]of l)(e||!(u3(w1(f))||u3(w1(g))))&&d.push([i(f),i(g)]);return p}case A6:{const d=[],p=a([s,d],l);for(const f of l)(e||!u3(w1(f)))&&d.push(i(f));return p}}const{message:u}=l;return a([s,{name:c,message:u}],l)};return i},YI=(e,{json:r,lossy:n}={})=>{const o=[];return rbe(!(r||n),!!r,new Map,o)(e),o},xd=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?VI(YI(e,r)):structuredClone(e):(e,r)=>VI(YI(e,r));function x_t(){}let k1=class{constructor(r,n,o){this.normal=n,this.property=r,o&&(this.space=o)}};k1.prototype.normal={},k1.prototype.property={},k1.prototype.space=void 0;function WI(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new k1(n,o,r)}function _1(e){return e.toLowerCase()}let Go=class{constructor(r,n){this.attribute=n,this.property=r}};Go.prototype.attribute="",Go.prototype.booleanish=!1,Go.prototype.boolean=!1,Go.prototype.commaOrSpaceSeparated=!1,Go.prototype.commaSeparated=!1,Go.prototype.defined=!1,Go.prototype.mustUseProperty=!1,Go.prototype.number=!1,Go.prototype.overloadedBoolean=!1,Go.prototype.property="",Go.prototype.spaceSeparated=!1,Go.prototype.space=void 0;let nbe=0;const Ot=wd(),mn=wd(),GI=wd(),He=wd(),_r=wd(),Oh=wd(),va=wd();function wd(){return 2**++nbe}const N6={__proto__:null,boolean:Ot,booleanish:mn,commaOrSpaceSeparated:va,commaSeparated:Oh,number:He,overloadedBoolean:GI,spaceSeparated:_r},D6=Object.keys(N6);let $6=class extends Go{constructor(r,n,o,a){let i=-1;if(super(r,n),XI(this,"space",a),typeof o=="number")for(;++i4&&n.slice(0,4)==="data"&&lbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(rL,cbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!rL.test(i)){let l=i.replace(ibe,sbe);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=$6}return new a(o,r)}function sbe(e){return"-"+e.toLowerCase()}function cbe(e){return e.charAt(1).toUpperCase()}const d3=WI([KI,obe,JI,eL,tL],"html"),E1=WI([KI,abe,JI,eL,tL],"svg");function nL(e){const r=[],n=String(e||"");let o=n.indexOf(","),a=0,i=!1;for(;!i;){o===-1&&(o=n.length,i=!0);const l=n.slice(a,o).trim();(l||!i)&&r.push(l),a=o+1,o=n.indexOf(",",a)}return r}function oL(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const aL=/[#.]/g;function ube(e,r){const n=e||"",o={};let a=0,i,l;for(;a-1&&i<=r.length){let l=0;for(;;){let s=n[l];if(s===void 0){const c=uL(r,n[l-1]);s=c===-1?r.length+1:c+1,n[l]=s}if(s>i)return{line:l+1,column:i-(l>0?n[l-1]:0)+1,offset:i};l++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length1?n[i.line-2]:0)+i.column-1;if(l4&&n.slice(0,4)==="data"&&Tbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(_L,Dbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!_L.test(i)){let l=i.replace(Rbe,Nbe);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=j6}return new a(o,r)}function Nbe(e){return"-"+e.toLowerCase()}function Dbe(e){return e.charAt(1).toUpperCase()}const $be=fL([bL,yL,wL,kL,Sbe],"html"),EL=fL([bL,yL,wL,kL,Cbe],"svg"),SL={}.hasOwnProperty;function B6(e,r){const n=r||{};function o(a,...i){let l=o.invalid;const s=o.handlers;if(a&&SL.call(a,e)){const c=String(a[e]);l=SL.call(s,c)?s[c]:o.unknown}if(l)return l.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const Pbe={},Obe={}.hasOwnProperty,CL=B6("type",{handlers:{root:Ibe,element:Fbe,text:jbe,comment:Bbe,doctype:zbe}});function Mbe(e,r){const o=(r||Pbe).space;return CL(e,o==="svg"?EL:$be)}function Ibe(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=F6(e.children,n,r),jh(e,n),n}function Lbe(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=F6(e.children,n,r),jh(e,n),n}function zbe(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return jh(e,r),r}function jbe(e){const r={nodeName:"#text",value:e.value,parentNode:null};return jh(e,r),r}function Bbe(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return jh(e,r),r}function Fbe(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=EL);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Obe.call(e.properties,i)){const c=Hbe(o,i,e.properties[i]);c&&a.push(c)}}const l=o.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:kd[l],childNodes:[],parentNode:null};return s.childNodes=F6(e.children,s,o),jh(e,s),e.tagName==="template"&&e.content&&(s.content=Lbe(e.content,o)),s}function Hbe(e,r,n){const o=Abe(e,r);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&o.boolean)return;Array.isArray(n)&&(n=o.commaSeparated?oL(n):lL(n));const a={name:o.attribute,value:n===!0?"":String(n)};if(o.space&&o.space!=="html"&&o.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=o.attribute.slice(0,i)),a.namespace=kd[o.space]}return a}function F6(e,r,n){let o=-1;const a=[];if(e)for(;++o=55296&&e<=57343}function qbe(e){return e>=56320&&e<=57343}function Vbe(e,r){return(e-55296)*1024+9216+r}function AL(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function NL(e){return e>=64976&&e<=65007||Ube.has(e)}var Ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ee||(Ee={}));const Ybe=65536;class Wbe{constructor(r){this.handler=r,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ybe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(r,n){const{line:o,col:a,offset:i}=this,l=a+n,s=i+n;return{code:r,startLine:o,endLine:o,startCol:l,endCol:l,startOffset:s,endOffset:s}}_err(r){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(r,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(r){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(qbe(n))return this.pos++,this._addGap(),Vbe(r,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Ee.surrogateInInputStream),r}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(r,n){this.html.length>0?this.html+=r:this.html=r,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(r){this.html=this.html.substring(0,this.pos+1)+r+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(r,n){if(this.pos+r.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(r,this.pos);for(let o=0;o=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;const o=this.html.charCodeAt(n);return o===ne.CARRIAGE_RETURN?ne.LINE_FEED:o}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;let r=this.html.charCodeAt(this.pos);return r===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):r===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,RL(r)&&(r=this._processSurrogate(r)),this.handler.onParseError===null||r>31&&r<127||r===ne.LINE_FEED||r===ne.CARRIAGE_RETURN||r>159&&r<64976||this._checkForProblematicCharacters(r),r)}_checkForProblematicCharacters(r){AL(r)?this._err(Ee.controlCharacterInInputStream):NL(r)&&this._err(Ee.noncharacterInInputStream)}retreat(r){for(this.pos-=r;this.pos=0;n--)if(e.attrs[n].name===r)return e.attrs[n].value;return null}const $L=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Gbe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var H6;const Xbe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Kbe=(H6=String.fromCodePoint)!==null&&H6!==void 0?H6:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function Zbe(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=Xbe.get(e))!==null&&r!==void 0?r:e}var qn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(qn||(qn={}));const Qbe=32;var Yc;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yc||(Yc={}));function U6(e){return e>=qn.ZERO&&e<=qn.NINE}function Jbe(e){return e>=qn.UPPER_A&&e<=qn.UPPER_F||e>=qn.LOWER_A&&e<=qn.LOWER_F}function eve(e){return e>=qn.UPPER_A&&e<=qn.UPPER_Z||e>=qn.LOWER_A&&e<=qn.LOWER_Z||U6(e)}function tve(e){return e===qn.EQUALS||eve(e)}var Vn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Vn||(Vn={}));var Ls;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ls||(Ls={}));let PL=class{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=Vn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ls.Strict}startEntity(r){this.decodeMode=r,this.state=Vn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case Vn.EntityStart:return r.charCodeAt(n)===qn.NUM?(this.state=Vn.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=Vn.NamedEntity,this.stateNamedEntity(r,n));case Vn.NumericStart:return this.stateNumericStart(r,n);case Vn.NumericDecimal:return this.stateNumericDecimal(r,n);case Vn.NumericHex:return this.stateNumericHex(r,n);case Vn.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Qbe)===qn.LOWER_X?(this.state=Vn.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=Vn.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,o,a){if(n!==o){const i=o-n;this.result=this.result*Math.pow(a,i)+parseInt(r.substr(n,i),a),this.consumed+=i}}stateNumericHex(r,n){const o=n;for(;n>14;for(;n>14,i!==0){if(l===qn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ls.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:o}=this,a=(o[n]&Yc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,o){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[r]&~Yc.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case Vn.NamedEntity:return this.result!==0&&(this.decodeMode!==Ls.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Vn.NumericDecimal:return this.emitNumericEntity(0,2);case Vn.NumericHex:return this.emitNumericEntity(0,3);case Vn.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Vn.EntityStart:return 0}}};function OL(e){let r="";const n=new PL(e,o=>r+=Kbe(o));return function(a,i){let l=0,s=0;for(;(s=a.indexOf("&",s))>=0;){r+=a.slice(l,s),n.startEntity(i);const u=n.write(a,s+1);if(u<0){l=s+n.end();break}l=s+u,s=u===0?l+1:l}const c=r+a.slice(l);return r="",c}}function rve(e,r,n,o){const a=(r&Yc.BRANCH_LENGTH)>>7,i=r&Yc.JUMP_TABLE;if(a===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=a?-1:e[n+c]-1}let l=n,s=l+a-1;for(;l<=s;){const c=l+s>>>1,u=e[c];if(uo)s=c-1;else return e[c+a]}return-1}OL($L),OL(Gbe);var Pe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Pe||(Pe={}));var Ed;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ed||(Ed={}));var Ja;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ja||(Ja={}));var me;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(me||(me={}));var H;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(H||(H={}));const nve=new Map([[me.A,H.A],[me.ADDRESS,H.ADDRESS],[me.ANNOTATION_XML,H.ANNOTATION_XML],[me.APPLET,H.APPLET],[me.AREA,H.AREA],[me.ARTICLE,H.ARTICLE],[me.ASIDE,H.ASIDE],[me.B,H.B],[me.BASE,H.BASE],[me.BASEFONT,H.BASEFONT],[me.BGSOUND,H.BGSOUND],[me.BIG,H.BIG],[me.BLOCKQUOTE,H.BLOCKQUOTE],[me.BODY,H.BODY],[me.BR,H.BR],[me.BUTTON,H.BUTTON],[me.CAPTION,H.CAPTION],[me.CENTER,H.CENTER],[me.CODE,H.CODE],[me.COL,H.COL],[me.COLGROUP,H.COLGROUP],[me.DD,H.DD],[me.DESC,H.DESC],[me.DETAILS,H.DETAILS],[me.DIALOG,H.DIALOG],[me.DIR,H.DIR],[me.DIV,H.DIV],[me.DL,H.DL],[me.DT,H.DT],[me.EM,H.EM],[me.EMBED,H.EMBED],[me.FIELDSET,H.FIELDSET],[me.FIGCAPTION,H.FIGCAPTION],[me.FIGURE,H.FIGURE],[me.FONT,H.FONT],[me.FOOTER,H.FOOTER],[me.FOREIGN_OBJECT,H.FOREIGN_OBJECT],[me.FORM,H.FORM],[me.FRAME,H.FRAME],[me.FRAMESET,H.FRAMESET],[me.H1,H.H1],[me.H2,H.H2],[me.H3,H.H3],[me.H4,H.H4],[me.H5,H.H5],[me.H6,H.H6],[me.HEAD,H.HEAD],[me.HEADER,H.HEADER],[me.HGROUP,H.HGROUP],[me.HR,H.HR],[me.HTML,H.HTML],[me.I,H.I],[me.IMG,H.IMG],[me.IMAGE,H.IMAGE],[me.INPUT,H.INPUT],[me.IFRAME,H.IFRAME],[me.KEYGEN,H.KEYGEN],[me.LABEL,H.LABEL],[me.LI,H.LI],[me.LINK,H.LINK],[me.LISTING,H.LISTING],[me.MAIN,H.MAIN],[me.MALIGNMARK,H.MALIGNMARK],[me.MARQUEE,H.MARQUEE],[me.MATH,H.MATH],[me.MENU,H.MENU],[me.META,H.META],[me.MGLYPH,H.MGLYPH],[me.MI,H.MI],[me.MO,H.MO],[me.MN,H.MN],[me.MS,H.MS],[me.MTEXT,H.MTEXT],[me.NAV,H.NAV],[me.NOBR,H.NOBR],[me.NOFRAMES,H.NOFRAMES],[me.NOEMBED,H.NOEMBED],[me.NOSCRIPT,H.NOSCRIPT],[me.OBJECT,H.OBJECT],[me.OL,H.OL],[me.OPTGROUP,H.OPTGROUP],[me.OPTION,H.OPTION],[me.P,H.P],[me.PARAM,H.PARAM],[me.PLAINTEXT,H.PLAINTEXT],[me.PRE,H.PRE],[me.RB,H.RB],[me.RP,H.RP],[me.RT,H.RT],[me.RTC,H.RTC],[me.RUBY,H.RUBY],[me.S,H.S],[me.SCRIPT,H.SCRIPT],[me.SEARCH,H.SEARCH],[me.SECTION,H.SECTION],[me.SELECT,H.SELECT],[me.SOURCE,H.SOURCE],[me.SMALL,H.SMALL],[me.SPAN,H.SPAN],[me.STRIKE,H.STRIKE],[me.STRONG,H.STRONG],[me.STYLE,H.STYLE],[me.SUB,H.SUB],[me.SUMMARY,H.SUMMARY],[me.SUP,H.SUP],[me.TABLE,H.TABLE],[me.TBODY,H.TBODY],[me.TEMPLATE,H.TEMPLATE],[me.TEXTAREA,H.TEXTAREA],[me.TFOOT,H.TFOOT],[me.TD,H.TD],[me.TH,H.TH],[me.THEAD,H.THEAD],[me.TITLE,H.TITLE],[me.TR,H.TR],[me.TRACK,H.TRACK],[me.TT,H.TT],[me.U,H.U],[me.UL,H.UL],[me.SVG,H.SVG],[me.VAR,H.VAR],[me.WBR,H.WBR],[me.XMP,H.XMP]]);function Bh(e){var r;return(r=nve.get(e))!==null&&r!==void 0?r:H.UNKNOWN}const Ie=H,ove={[Pe.HTML]:new Set([Ie.ADDRESS,Ie.APPLET,Ie.AREA,Ie.ARTICLE,Ie.ASIDE,Ie.BASE,Ie.BASEFONT,Ie.BGSOUND,Ie.BLOCKQUOTE,Ie.BODY,Ie.BR,Ie.BUTTON,Ie.CAPTION,Ie.CENTER,Ie.COL,Ie.COLGROUP,Ie.DD,Ie.DETAILS,Ie.DIR,Ie.DIV,Ie.DL,Ie.DT,Ie.EMBED,Ie.FIELDSET,Ie.FIGCAPTION,Ie.FIGURE,Ie.FOOTER,Ie.FORM,Ie.FRAME,Ie.FRAMESET,Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6,Ie.HEAD,Ie.HEADER,Ie.HGROUP,Ie.HR,Ie.HTML,Ie.IFRAME,Ie.IMG,Ie.INPUT,Ie.LI,Ie.LINK,Ie.LISTING,Ie.MAIN,Ie.MARQUEE,Ie.MENU,Ie.META,Ie.NAV,Ie.NOEMBED,Ie.NOFRAMES,Ie.NOSCRIPT,Ie.OBJECT,Ie.OL,Ie.P,Ie.PARAM,Ie.PLAINTEXT,Ie.PRE,Ie.SCRIPT,Ie.SECTION,Ie.SELECT,Ie.SOURCE,Ie.STYLE,Ie.SUMMARY,Ie.TABLE,Ie.TBODY,Ie.TD,Ie.TEMPLATE,Ie.TEXTAREA,Ie.TFOOT,Ie.TH,Ie.THEAD,Ie.TITLE,Ie.TR,Ie.TRACK,Ie.UL,Ie.WBR,Ie.XMP]),[Pe.MATHML]:new Set([Ie.MI,Ie.MO,Ie.MN,Ie.MS,Ie.MTEXT,Ie.ANNOTATION_XML]),[Pe.SVG]:new Set([Ie.TITLE,Ie.FOREIGN_OBJECT,Ie.DESC]),[Pe.XLINK]:new Set,[Pe.XML]:new Set,[Pe.XMLNS]:new Set},q6=new Set([Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6]);me.STYLE,me.SCRIPT,me.XMP,me.IFRAME,me.NOEMBED,me.NOFRAMES,me.PLAINTEXT;var ae;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ae||(ae={}));const on={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function ave(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function C1(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function ive(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Wc(e){return ive(e)||C1(e)}function ML(e){return Wc(e)||ave(e)}function h3(e){return e+32}function IL(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function LL(e){return IL(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}function lve(e){return e===ne.NULL?Ee.nullCharacterReference:e>1114111?Ee.characterReferenceOutsideUnicodeRange:RL(e)?Ee.surrogateCharacterReference:NL(e)?Ee.noncharacterCharacterReference:AL(e)||e===ne.CARRIAGE_RETURN?Ee.controlCharacterReference:null}class sve{constructor(r,n){this.options=r,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ae.DATA,this.returnState=ae.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Wbe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new PL($L,(o,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(o)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:o=>{this._err(Ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+o)},validateNumericCharacterReference:o=>{const a=lve(o);a&&this._err(a,1)}}:void 0)}_err(r,n=0){var o,a;(a=(o=this.handler).onParseError)===null||a===void 0||a.call(o,this.preprocessor.getError(r,n))}getCurrentLocation(r){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-r,startOffset:this.preprocessor.offset-r,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const r=this._consume();this._ensureHibernation()||this._callState(r)}this.inLoop=!1}}pause(){this.paused=!0}resume(r){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||r?.())}write(r,n,o){this.active=!0,this.preprocessor.write(r,n),this._runParsingLoop(),this.paused||o?.()}insertHtmlAtCurrentPos(r){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(r),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(r){this.consumedAfterSnapshot+=r;for(let n=0;n0&&this._err(Ee.endTagWithAttributes),r.selfClosing&&this._err(Ee.endTagWithTrailingSolidus),this.handler.onEndTag(r)),this.preprocessor.dropParsedChunk()}emitCurrentComment(r){this.prepareToken(r),this.handler.onComment(r),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(r){this.prepareToken(r),this.handler.onDoctype(r),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(r){if(this.currentCharacterToken){switch(r&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentCharacterToken.type){case Ht.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ht.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ht.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const r=this.getCurrentLocation(0);r&&(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset),this._emitCurrentCharacterToken(r),this.handler.onEof({type:Ht.EOF,location:r}),this.active=!1}_appendCharToCurrentCharacterToken(r,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===r){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(r,n)}_emitCodePoint(r){const n=IL(r)?Ht.WHITESPACE_CHARACTER:r===ne.NULL?Ht.NULL_CHARACTER:Ht.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(r))}_emitChars(r){this._appendCharToCurrentCharacterToken(Ht.CHARACTER,r)}_startCharacterReference(){this.returnState=this.state,this.state=ae.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ls.Attribute:Ls.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(r){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(r):this._emitCodePoint(r)}_callState(r){switch(this.state){case ae.DATA:{this._stateData(r);break}case ae.RCDATA:{this._stateRcdata(r);break}case ae.RAWTEXT:{this._stateRawtext(r);break}case ae.SCRIPT_DATA:{this._stateScriptData(r);break}case ae.PLAINTEXT:{this._statePlaintext(r);break}case ae.TAG_OPEN:{this._stateTagOpen(r);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(r);break}case ae.TAG_NAME:{this._stateTagName(r);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(r);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(r);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(r);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(r);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(r);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(r);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(r);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(r);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(r);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(r);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(r);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(r);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(r);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(r);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(r);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(r);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(r);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(r);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(r);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(r);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(r);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(r);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(r);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(r);break}case ae.COMMENT_START:{this._stateCommentStart(r);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(r);break}case ae.COMMENT:{this._stateComment(r);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(r);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(r);break}case ae.COMMENT_END:{this._stateCommentEnd(r);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(r);break}case ae.DOCTYPE:{this._stateDoctype(r);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(r);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(r);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(r);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(r);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(r);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(r);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(r);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(r);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(r);break}case ae.CDATA_SECTION:{this._stateCdataSection(r);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(r);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(r);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(r);break}default:throw new Error("Unknown state")}}_stateData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitCodePoint(r);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRcdata(r){switch(r){case ne.AMPERSAND:{this._startCharacterReference();break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Mr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRawtext(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Mr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Mr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_statePlaintext(r){switch(r){case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Mr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateTagOpen(r){if(Wc(r))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r);break}case ne.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(r)}}_stateEndTagOpen(r){if(Wc(r))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.GREATER_THAN_SIGN:{this._err(Ee.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars(""),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r)}}_stateTagName(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case ne.SOLIDUS:{this.state=ae.SELF_CLOSING_START_TAG;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.tagName+=Mr;break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(C1(r)?h3(r):r)}}_stateRcdataLessThanSign(r){r===ne.SOLIDUS?this.state=ae.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRcdataEndTagOpen(r){Wc(r)?(this.state=ae.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(r)):(this._emitChars(""),this.state=ae.RCDATA,this._stateRcdata(r))}handleSpecialEndTag(r){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ae.BEFORE_ATTRIBUTE_NAME,!1;case ne.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ae.SELF_CLOSING_START_TAG,!1;case ne.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ae.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars(""),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRawtextLessThanSign(r){r===ne.SOLIDUS?this.state=ae.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagOpen(r){Wc(r)?(this.state=ae.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(r)):(this._emitChars(""),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars(""),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateScriptDataLessThanSign(r){switch(r){case ne.SOLIDUS:{this.state=ae.SCRIPT_DATA_END_TAG_OPEN;break}case ne.EXCLAMATION_MARK:{this.state=ae.SCRIPT_DATA_ESCAPE_START,this._emitChars("");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Mr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedLessThanSign(r){r===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Wc(r)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(r)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagOpen(r){Wc(r)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(r)):(this._emitChars(""),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars(""),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataDoubleEscapeStart(r){if(this.preprocessor.startsWith(Xo.SCRIPT,!1)&&LL(this.preprocessor.peek(Xo.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Mr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedLessThanSign(r){r===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(r))}_stateScriptDataDoubleEscapeEnd(r){if(this.preprocessor.startsWith(Xo.SCRIPT,!1)&&LL(this.preprocessor.peek(Xo.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!0)}replace(r,n){const o=this._indexOf(r);this.items[o]=n,o===this.stackTop&&(this.current=n)}insertAfter(r,n,o){const a=this._indexOf(r)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,o),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(r){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(r,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Pe.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(r){for(;this.stackTop>=r;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;o--)if(r.has(this.tagIDs[o])&&this.treeAdapter.getNamespaceURI(this.items[o])===n)return o;return-1}clearBackTo(r,n){const o=this._indexOfTagNames(r,n);this.shortenToLength(o+1)}clearBackToTableContext(){this.clearBackTo(hve,Pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(pve,Pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(dve,Pe.HTML)}remove(r){const n=this._indexOf(r);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===H.BODY?this.items[1]:null}contains(r){return this._indexOf(r)>-1}getCommonAncestor(r){const n=this._indexOf(r)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===H.HTML}hasInDynamicScope(r,n){for(let o=this.stackTop;o>=0;o--){const a=this.tagIDs[o];switch(this.treeAdapter.getNamespaceURI(this.items[o])){case Pe.HTML:{if(a===r)return!0;if(n.has(a))return!1;break}case Pe.SVG:{if(FL.has(a))return!1;break}case Pe.MATHML:{if(BL.has(a))return!1;break}}}return!0}hasInScope(r){return this.hasInDynamicScope(r,f3)}hasInListItemScope(r){return this.hasInDynamicScope(r,cve)}hasInButtonScope(r){return this.hasInDynamicScope(r,uve)}hasNumberedHeaderInScope(){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Pe.HTML:{if(q6.has(n))return!0;if(f3.has(n))return!1;break}case Pe.SVG:{if(FL.has(n))return!1;break}case Pe.MATHML:{if(BL.has(n))return!1;break}}}return!0}hasInTableScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Pe.HTML)switch(this.tagIDs[n]){case r:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Pe.HTML)switch(this.tagIDs[r]){case H.TBODY:case H.THEAD:case H.TFOOT:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasInSelectScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Pe.HTML)switch(this.tagIDs[n]){case r:return!0;case H.OPTION:case H.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;zL.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;jL.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(r){for(;this.currentTagId!==r&&jL.has(this.currentTagId);)this.pop()}}const V6=3;var Vl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Vl||(Vl={}));const HL={type:Vl.Marker};class gve{constructor(r){this.treeAdapter=r,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(r,n){const o=[],a=n.length,i=this.treeAdapter.getTagName(r),l=this.treeAdapter.getNamespaceURI(r);for(let s=0;s[l.name,l.value]));let i=0;for(let l=0;la.get(c.name)===c.value)&&(i+=1,i>=V6&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(HL)}pushElement(r,n){this._ensureNoahArkCondition(r),this.entries.unshift({type:Vl.Element,element:r,token:n})}insertElementAfterBookmark(r,n){const o=this.entries.indexOf(this.bookmark);this.entries.splice(o,0,{type:Vl.Element,element:r,token:n})}removeEntry(r){const n=this.entries.indexOf(r);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const r=this.entries.indexOf(HL);r>=0?this.entries.splice(0,r+1):this.entries.length=0}getElementEntryInScopeWithTagName(r){const n=this.entries.find(o=>o.type===Vl.Marker||this.treeAdapter.getTagName(o.element)===r);return n&&n.type===Vl.Element?n:null}getElementEntry(r){return this.entries.find(n=>n.type===Vl.Element&&n.element===r)}}const Gc={createDocument(){return{nodeName:"#document",mode:Ja.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,r,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:r,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,r){e.childNodes.push(r),r.parentNode=e},insertBefore(e,r,n){const o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,r),r.parentNode=e},setTemplateContent(e,r){e.content=r},getTemplateContent(e){return e.content},setDocumentType(e,r,n,o){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=r,a.publicId=n,a.systemId=o;else{const i={nodeName:"#documentType",name:r,publicId:n,systemId:o,parentNode:null};Gc.appendChild(e,i)}},setDocumentMode(e,r){e.mode=r},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const r=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(r,1),e.parentNode=null}},insertText(e,r){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Gc.isTextNode(n)){n.value+=r;return}}Gc.appendChild(e,Gc.createTextNode(r))},insertTextBefore(e,r,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&Gc.isTextNode(o)?o.value+=r:Gc.insertBefore(e,Gc.createTextNode(r),n)},adoptAttributes(e,r){const n=new Set(e.attrs.map(o=>o.name));for(let o=0;oe.startsWith(n))}function kve(e){return e.name===UL&&e.publicId===null&&(e.systemId===null||e.systemId===yve)}function _ve(e){if(e.name!==UL)return Ja.QUIRKS;const{systemId:r}=e;if(r&&r.toLowerCase()===bve)return Ja.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),xve.has(n))return Ja.QUIRKS;let o=r===null?vve:qL;if(YL(n,o))return Ja.QUIRKS;if(o=r===null?VL:wve,YL(n,o))return Ja.LIMITED_QUIRKS}return Ja.NO_QUIRKS}const WL={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Eve="definitionurl",Sve="definitionURL",Cve=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Tve=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Pe.XMLNS}]]),Rve=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Ave=new Set([H.B,H.BIG,H.BLOCKQUOTE,H.BODY,H.BR,H.CENTER,H.CODE,H.DD,H.DIV,H.DL,H.DT,H.EM,H.EMBED,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HR,H.I,H.IMG,H.LI,H.LISTING,H.MENU,H.META,H.NOBR,H.OL,H.P,H.PRE,H.RUBY,H.S,H.SMALL,H.SPAN,H.STRONG,H.STRIKE,H.SUB,H.SUP,H.TABLE,H.TT,H.U,H.UL,H.VAR]);function Nve(e){const r=e.tagID;return r===H.FONT&&e.attrs.some(({name:o})=>o===Ed.COLOR||o===Ed.SIZE||o===Ed.FACE)||Ave.has(r)}function GL(e){for(let r=0;r0&&this._setContextModes(r,n)}onItemPop(r,n){var o,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(r,this.currentToken),(a=(o=this.treeAdapter).onItemPop)===null||a===void 0||a.call(o,r,this.openElements.current),n){let i,l;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,l=this.fragmentContextID):{current:i,currentTagId:l}=this.openElements,this._setContextModes(i,l)}}_setContextModes(r,n){const o=r===this.document||this.treeAdapter.getNamespaceURI(r)===Pe.HTML;this.currentNotInHTML=!o,this.tokenizer.inForeignNode=!o&&!this._isIntegrationPoint(n,r)}_switchToTextParsing(r,n){this._insertElement(r,Pe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=le.TEXT}switchToPlaintextParsing(){this.insertionMode=le.TEXT,this.originalInsertionMode=le.IN_BODY,this.tokenizer.state=on.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let r=this.fragmentContext;for(;r;){if(this.treeAdapter.getTagName(r)===me.FORM){this.formElement=r;break}r=this.treeAdapter.getParentNode(r)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Pe.HTML))switch(this.fragmentContextID){case H.TITLE:case H.TEXTAREA:{this.tokenizer.state=on.RCDATA;break}case H.STYLE:case H.XMP:case H.IFRAME:case H.NOEMBED:case H.NOFRAMES:case H.NOSCRIPT:{this.tokenizer.state=on.RAWTEXT;break}case H.SCRIPT:{this.tokenizer.state=on.SCRIPT_DATA;break}case H.PLAINTEXT:{this.tokenizer.state=on.PLAINTEXT;break}}}_setDocumentType(r){const n=r.name||"",o=r.publicId||"",a=r.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,o,a),r.location){const l=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));l&&this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}_attachElementToTree(r,n){if(this.options.sourceCodeLocationInfo){const o=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(r,o)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(r);else{const o=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(o,r)}}_appendElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location)}_insertElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location),this.openElements.push(o,r.tagID)}_insertFakeElement(r,n){const o=this.treeAdapter.createElement(r,Pe.HTML,[]);this._attachElementToTree(o,null),this.openElements.push(o,n)}_insertTemplate(r){const n=this.treeAdapter.createElement(r.tagName,Pe.HTML,r.attrs),o=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,o),this._attachElementToTree(n,r.location),this.openElements.push(n,r.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,null)}_insertFakeRootElement(){const r=this.treeAdapter.createElement(me.HTML,Pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null),this.treeAdapter.appendChild(this.openElements.current,r),this.openElements.push(r,H.HTML)}_appendCommentNode(r,n){const o=this.treeAdapter.createCommentNode(r.data);this.treeAdapter.appendChild(n,o),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,r.location)}_insertCharacters(r){let n,o;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:o}=this._findFosterParentingLocation(),o?this.treeAdapter.insertTextBefore(n,r.chars,o):this.treeAdapter.insertText(n,r.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,r.chars)),!r.location)return;const a=this.treeAdapter.getChildNodes(n),i=o?a.lastIndexOf(o):a.length,l=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:u,endOffset:d}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}_adoptNodes(r,n){for(let o=this.treeAdapter.getFirstChild(r);o;o=this.treeAdapter.getFirstChild(r))this.treeAdapter.detachNode(o),this.treeAdapter.appendChild(n,o)}_setEndLocation(r,n){if(this.treeAdapter.getNodeSourceCodeLocation(r)&&n.location){const o=n.location,a=this.treeAdapter.getTagName(r),i=n.type===Ht.END_TAG&&a===n.tagName?{endTag:{...o},endLine:o.endLine,endCol:o.endCol,endOffset:o.endOffset}:{endLine:o.startLine,endCol:o.startCol,endOffset:o.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(r,i)}}shouldProcessStartTagTokenInForeignContent(r){if(!this.currentNotInHTML)return!1;let n,o;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,r.tagID===H.SVG&&this.treeAdapter.getTagName(n)===me.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Pe.MATHML?!1:this.tokenizer.inForeignNode||(r.tagID===H.MGLYPH||r.tagID===H.MALIGNMARK)&&!this._isIntegrationPoint(o,n,Pe.HTML)}_processToken(r){switch(r.type){case Ht.CHARACTER:{this.onCharacter(r);break}case Ht.NULL_CHARACTER:{this.onNullCharacter(r);break}case Ht.COMMENT:{this.onComment(r);break}case Ht.DOCTYPE:{this.onDoctype(r);break}case Ht.START_TAG:{this._processStartTag(r);break}case Ht.END_TAG:{this.onEndTag(r);break}case Ht.EOF:{this.onEof(r);break}case Ht.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(r);break}}}_isIntegrationPoint(r,n,o){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Ove(r,a,i,o)}_reconstructActiveFormattingElements(){const r=this.activeFormattingElements.entries.length;if(r){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Vl.Marker||this.openElements.contains(a.element)),o=n<0?r-1:n-1;for(let a=o;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=le.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(H.P),this.openElements.popUntilTagNamePopped(H.P)}_resetInsertionMode(){for(let r=this.openElements.stackTop;r>=0;r--)switch(r===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[r]){case H.TR:{this.insertionMode=le.IN_ROW;return}case H.TBODY:case H.THEAD:case H.TFOOT:{this.insertionMode=le.IN_TABLE_BODY;return}case H.CAPTION:{this.insertionMode=le.IN_CAPTION;return}case H.COLGROUP:{this.insertionMode=le.IN_COLUMN_GROUP;return}case H.TABLE:{this.insertionMode=le.IN_TABLE;return}case H.BODY:{this.insertionMode=le.IN_BODY;return}case H.FRAMESET:{this.insertionMode=le.IN_FRAMESET;return}case H.SELECT:{this._resetInsertionModeForSelect(r);return}case H.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case H.HTML:{this.insertionMode=this.headElement?le.AFTER_HEAD:le.BEFORE_HEAD;return}case H.TD:case H.TH:{if(r>0){this.insertionMode=le.IN_CELL;return}break}case H.HEAD:{if(r>0){this.insertionMode=le.IN_HEAD;return}break}}this.insertionMode=le.IN_BODY}_resetInsertionModeForSelect(r){if(r>0)for(let n=r-1;n>0;n--){const o=this.openElements.tagIDs[n];if(o===H.TEMPLATE)break;if(o===H.TABLE){this.insertionMode=le.IN_SELECT_IN_TABLE;return}}this.insertionMode=le.IN_SELECT}_isElementCausesFosterParenting(r){return KL.has(r)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let r=this.openElements.stackTop;r>=0;r--){const n=this.openElements.items[r];switch(this.openElements.tagIDs[r]){case H.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Pe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case H.TABLE:{const o=this.treeAdapter.getParentNode(n);return o?{parent:o,beforeElement:n}:{parent:this.openElements.items[r-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(r){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,r,n.beforeElement):this.treeAdapter.appendChild(n.parent,r)}_isSpecialElement(r,n){const o=this.treeAdapter.getNamespaceURI(r);return ove[o].has(n)}onCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){fxe(this,r);return}switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{$1(this,r);break}case le.IN_BODY:case le.IN_CAPTION:case le.IN_CELL:case le.IN_TEMPLATE:{ez(this,r);break}case le.TEXT:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:{this._insertCharacters(r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{K6(this,r);break}case le.IN_TABLE_TEXT:{sz(this,r);break}case le.IN_COLUMN_GROUP:{y3(this,r);break}case le.AFTER_BODY:{x3(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onNullCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){hxe(this,r);return}switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{$1(this,r);break}case le.TEXT:{this._insertCharacters(r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{K6(this,r);break}case le.IN_COLUMN_GROUP:{y3(this,r);break}case le.AFTER_BODY:{x3(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onComment(r){if(this.skipNextNewLine=!1,this.currentNotInHTML){G6(this,r);return}switch(this.insertionMode){case le.INITIAL:case le.BEFORE_HTML:case le.BEFORE_HEAD:case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:case le.IN_BODY:case le.IN_TABLE:case le.IN_CAPTION:case le.IN_COLUMN_GROUP:case le.IN_TABLE_BODY:case le.IN_ROW:case le.IN_CELL:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:case le.IN_TEMPLATE:case le.IN_FRAMESET:case le.AFTER_FRAMESET:{G6(this,r);break}case le.IN_TABLE_TEXT:{M1(this,r);break}case le.AFTER_BODY:{Vve(this,r);break}case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{Yve(this,r);break}}}onDoctype(r){switch(this.skipNextNewLine=!1,this.insertionMode){case le.INITIAL:{Wve(this,r);break}case le.BEFORE_HEAD:case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:{this._err(r,Ee.misplacedDoctype);break}case le.IN_TABLE_TEXT:{M1(this,r);break}}}onStartTag(r){this.skipNextNewLine=!1,this.currentToken=r,this._processStartTag(r),r.selfClosing&&!r.ackSelfClosing&&this._err(r,Ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(r){this.shouldProcessStartTagTokenInForeignContent(r)?mxe(this,r):this._startTagOutsideForeignContent(r)}_startTagOutsideForeignContent(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{Gve(this,r);break}case le.BEFORE_HEAD:{Kve(this,r);break}case le.IN_HEAD:{Hi(this,r);break}case le.IN_HEAD_NO_SCRIPT:{Jve(this,r);break}case le.AFTER_HEAD:{t3e(this,r);break}case le.IN_BODY:{So(this,r);break}case le.IN_TABLE:{Fh(this,r);break}case le.IN_TABLE_TEXT:{M1(this,r);break}case le.IN_CAPTION:{Z3e(this,r);break}case le.IN_COLUMN_GROUP:{Z6(this,r);break}case le.IN_TABLE_BODY:{b3(this,r);break}case le.IN_ROW:{v3(this,r);break}case le.IN_CELL:{exe(this,r);break}case le.IN_SELECT:{dz(this,r);break}case le.IN_SELECT_IN_TABLE:{rxe(this,r);break}case le.IN_TEMPLATE:{oxe(this,r);break}case le.AFTER_BODY:{ixe(this,r);break}case le.IN_FRAMESET:{lxe(this,r);break}case le.AFTER_FRAMESET:{cxe(this,r);break}case le.AFTER_AFTER_BODY:{dxe(this,r);break}case le.AFTER_AFTER_FRAMESET:{pxe(this,r);break}}}onEndTag(r){this.skipNextNewLine=!1,this.currentToken=r,this.currentNotInHTML?gxe(this,r):this._endTagOutsideForeignContent(r)}_endTagOutsideForeignContent(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{Xve(this,r);break}case le.BEFORE_HEAD:{Zve(this,r);break}case le.IN_HEAD:{Qve(this,r);break}case le.IN_HEAD_NO_SCRIPT:{e3e(this,r);break}case le.AFTER_HEAD:{r3e(this,r);break}case le.IN_BODY:{g3(this,r);break}case le.TEXT:{F3e(this,r);break}case le.IN_TABLE:{P1(this,r);break}case le.IN_TABLE_TEXT:{M1(this,r);break}case le.IN_CAPTION:{Q3e(this,r);break}case le.IN_COLUMN_GROUP:{J3e(this,r);break}case le.IN_TABLE_BODY:{Q6(this,r);break}case le.IN_ROW:{uz(this,r);break}case le.IN_CELL:{txe(this,r);break}case le.IN_SELECT:{pz(this,r);break}case le.IN_SELECT_IN_TABLE:{nxe(this,r);break}case le.IN_TEMPLATE:{axe(this,r);break}case le.AFTER_BODY:{fz(this,r);break}case le.IN_FRAMESET:{sxe(this,r);break}case le.AFTER_FRAMESET:{uxe(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onEof(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{$1(this,r);break}case le.IN_BODY:case le.IN_TABLE:case le.IN_CAPTION:case le.IN_COLUMN_GROUP:case le.IN_TABLE_BODY:case le.IN_ROW:case le.IN_CELL:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:{iz(this,r);break}case le.TEXT:{H3e(this,r);break}case le.IN_TABLE_TEXT:{M1(this,r);break}case le.IN_TEMPLATE:{hz(this,r);break}case le.AFTER_BODY:case le.IN_FRAMESET:case le.AFTER_FRAMESET:case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{X6(this,r);break}}}onWhitespaceCharacter(r){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,r.chars.charCodeAt(0)===ne.LINE_FEED)){if(r.chars.length===1)return;r.chars=r.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(r);return}switch(this.insertionMode){case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:case le.TEXT:case le.IN_COLUMN_GROUP:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:case le.IN_FRAMESET:case le.AFTER_FRAMESET:{this._insertCharacters(r);break}case le.IN_BODY:case le.IN_CAPTION:case le.IN_CELL:case le.IN_TEMPLATE:case le.AFTER_BODY:case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{JL(this,r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{K6(this,r);break}case le.IN_TABLE_TEXT:{lz(this,r);break}}}}function jve(e,r){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(r.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(r.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):az(e,r),n}function Bve(e,r){let n=null,o=e.openElements.stackTop;for(;o>=0;o--){const a=e.openElements.items[o];if(a===r.element)break;e._isSpecialElement(a,e.openElements.tagIDs[o])&&(n=a)}return n||(e.openElements.shortenToLength(o<0?0:o),e.activeFormattingElements.removeEntry(r)),n}function Fve(e,r,n){let o=r,a=e.openElements.getCommonAncestor(r);for(let i=0,l=a;l!==n;i++,l=a){a=e.openElements.getCommonAncestor(l);const s=e.activeFormattingElements.getElementEntry(l),c=s&&i>=Lve;!s||c?(c&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(l)):(l=Hve(e,s),o===r&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(l,o),o=l)}return o}function Hve(e,r){const n=e.treeAdapter.getNamespaceURI(r.element),o=e.treeAdapter.createElement(r.token.tagName,n,r.token.attrs);return e.openElements.replace(r.element,o),r.element=o,o}function Uve(e,r,n){const o=e.treeAdapter.getTagName(r),a=Bh(o);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(r);a===H.TEMPLATE&&i===Pe.HTML&&(r=e.treeAdapter.getTemplateContent(r)),e.treeAdapter.appendChild(r,n)}}function qve(e,r,n){const o=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,o,a.attrs);e._adoptNodes(r,i),e.treeAdapter.appendChild(r,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(r,i,a.tagID)}function W6(e,r){for(let n=0;n=n;o--)e._setEndLocation(e.openElements.items[o],r);if(!e.fragmentContext&&e.openElements.stackTop>=0){const o=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(o);if(a&&!a.endTag&&(e._setEndLocation(o,r),e.openElements.stackTop>=1)){const i=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(i);l&&!l.endTag&&e._setEndLocation(i,r)}}}}function Wve(e,r){e._setDocumentType(r);const n=r.forceQuirks?Ja.QUIRKS:_ve(r);kve(r)||e._err(r,Ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=le.BEFORE_HTML}function T1(e,r){e._err(r,Ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ja.QUIRKS),e.insertionMode=le.BEFORE_HTML,e._processToken(r)}function Gve(e,r){r.tagID===H.HTML?(e._insertElement(r,Pe.HTML),e.insertionMode=le.BEFORE_HEAD):R1(e,r)}function Xve(e,r){const n=r.tagID;(n===H.HTML||n===H.HEAD||n===H.BODY||n===H.BR)&&R1(e,r)}function R1(e,r){e._insertFakeRootElement(),e.insertionMode=le.BEFORE_HEAD,e._processToken(r)}function Kve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.HEAD:{e._insertElement(r,Pe.HTML),e.headElement=e.openElements.current,e.insertionMode=le.IN_HEAD;break}default:A1(e,r)}}function Zve(e,r){const n=r.tagID;n===H.HEAD||n===H.BODY||n===H.HTML||n===H.BR?A1(e,r):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function A1(e,r){e._insertFakeElement(me.HEAD,H.HEAD),e.headElement=e.openElements.current,e.insertionMode=le.IN_HEAD,e._processToken(r)}function Hi(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:{e._appendElement(r,Pe.HTML),r.ackSelfClosing=!0;break}case H.TITLE:{e._switchToTextParsing(r,on.RCDATA);break}case H.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(r,on.RAWTEXT):(e._insertElement(r,Pe.HTML),e.insertionMode=le.IN_HEAD_NO_SCRIPT);break}case H.NOFRAMES:case H.STYLE:{e._switchToTextParsing(r,on.RAWTEXT);break}case H.SCRIPT:{e._switchToTextParsing(r,on.SCRIPT_DATA);break}case H.TEMPLATE:{e._insertTemplate(r),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=le.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(le.IN_TEMPLATE);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:N1(e,r)}}function Qve(e,r){switch(r.tagID){case H.HEAD:{e.openElements.pop(),e.insertionMode=le.AFTER_HEAD;break}case H.BODY:case H.BR:case H.HTML:{N1(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function Sd(e,r){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==H.TEMPLATE&&e._err(r,Ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function N1(e,r){e.openElements.pop(),e.insertionMode=le.AFTER_HEAD,e._processToken(r)}function Jve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASEFONT:case H.BGSOUND:case H.HEAD:case H.LINK:case H.META:case H.NOFRAMES:case H.STYLE:{Hi(e,r);break}case H.NOSCRIPT:{e._err(r,Ee.nestedNoscriptInHead);break}default:D1(e,r)}}function e3e(e,r){switch(r.tagID){case H.NOSCRIPT:{e.openElements.pop(),e.insertionMode=le.IN_HEAD;break}case H.BR:{D1(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function D1(e,r){const n=r.type===Ht.EOF?Ee.openElementsLeftAfterEof:Ee.disallowedContentInNoscriptInHead;e._err(r,n),e.openElements.pop(),e.insertionMode=le.IN_HEAD,e._processToken(r)}function t3e(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BODY:{e._insertElement(r,Pe.HTML),e.framesetOk=!1,e.insertionMode=le.IN_BODY;break}case H.FRAMESET:{e._insertElement(r,Pe.HTML),e.insertionMode=le.IN_FRAMESET;break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{e._err(r,Ee.abandonedHeadElementChild),e.openElements.push(e.headElement,H.HEAD),Hi(e,r),e.openElements.remove(e.headElement);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:$1(e,r)}}function r3e(e,r){switch(r.tagID){case H.BODY:case H.HTML:case H.BR:{$1(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function $1(e,r){e._insertFakeElement(me.BODY,H.BODY),e.insertionMode=le.IN_BODY,m3(e,r)}function m3(e,r){switch(r.type){case Ht.CHARACTER:{ez(e,r);break}case Ht.WHITESPACE_CHARACTER:{JL(e,r);break}case Ht.COMMENT:{G6(e,r);break}case Ht.START_TAG:{So(e,r);break}case Ht.END_TAG:{g3(e,r);break}case Ht.EOF:{iz(e,r);break}}}function JL(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r)}function ez(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r),e.framesetOk=!1}function n3e(e,r){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],r.attrs)}function o3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,r.attrs))}function a3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(r,Pe.HTML),e.insertionMode=le.IN_FRAMESET)}function i3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Pe.HTML)}function l3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),q6.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(r,Pe.HTML)}function s3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function c3e(e,r){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Pe.HTML),n||(e.formElement=e.openElements.current))}function u3e(e,r){e.framesetOk=!1;const n=r.tagID;for(let o=e.openElements.stackTop;o>=0;o--){const a=e.openElements.tagIDs[o];if(n===H.LI&&a===H.LI||(n===H.DD||n===H.DT)&&(a===H.DD||a===H.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==H.ADDRESS&&a!==H.DIV&&a!==H.P&&e._isSpecialElement(e.openElements.items[o],a))break}e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Pe.HTML)}function d3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Pe.HTML),e.tokenizer.state=on.PLAINTEXT}function p3e(e,r){e.openElements.hasInScope(H.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(r,Pe.HTML),e.framesetOk=!1}function h3e(e,r){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(me.A);n&&(W6(e,r),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(r,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function f3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function m3e(e,r){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(H.NOBR)&&(W6(e,r),e._reconstructActiveFormattingElements()),e._insertElement(r,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function g3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function y3e(e,r){e.treeAdapter.getDocumentMode(e.document)!==Ja.QUIRKS&&e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Pe.HTML),e.framesetOk=!1,e.insertionMode=le.IN_TABLE}function tz(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,Pe.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function rz(e){const r=DL(e,Ed.TYPE);return r!=null&&r.toLowerCase()===Mve}function b3e(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,Pe.HTML),rz(r)||(e.framesetOk=!1),r.ackSelfClosing=!0}function v3e(e,r){e._appendElement(r,Pe.HTML),r.ackSelfClosing=!0}function x3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._appendElement(r,Pe.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function w3e(e,r){r.tagName=me.IMG,r.tagID=H.IMG,tz(e,r)}function k3e(e,r){e._insertElement(r,Pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=on.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=le.TEXT}function _3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function E3e(e,r){e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function nz(e,r){e._switchToTextParsing(r,on.RAWTEXT)}function S3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Pe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===le.IN_TABLE||e.insertionMode===le.IN_CAPTION||e.insertionMode===le.IN_TABLE_BODY||e.insertionMode===le.IN_ROW||e.insertionMode===le.IN_CELL?le.IN_SELECT_IN_TABLE:le.IN_SELECT}function C3e(e,r){e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(r,Pe.HTML)}function T3e(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(r,Pe.HTML)}function R3e(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(H.RTC),e._insertElement(r,Pe.HTML)}function A3e(e,r){e._reconstructActiveFormattingElements(),GL(r),Y6(r),r.selfClosing?e._appendElement(r,Pe.MATHML):e._insertElement(r,Pe.MATHML),r.ackSelfClosing=!0}function N3e(e,r){e._reconstructActiveFormattingElements(),XL(r),Y6(r),r.selfClosing?e._appendElement(r,Pe.SVG):e._insertElement(r,Pe.SVG),r.ackSelfClosing=!0}function oz(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Pe.HTML)}function So(e,r){switch(r.tagID){case H.I:case H.S:case H.B:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.SMALL:case H.STRIKE:case H.STRONG:{f3e(e,r);break}case H.A:{h3e(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{l3e(e,r);break}case H.P:case H.DL:case H.OL:case H.UL:case H.DIV:case H.DIR:case H.NAV:case H.MAIN:case H.MENU:case H.ASIDE:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.DETAILS:case H.ADDRESS:case H.ARTICLE:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{i3e(e,r);break}case H.LI:case H.DD:case H.DT:{u3e(e,r);break}case H.BR:case H.IMG:case H.WBR:case H.AREA:case H.EMBED:case H.KEYGEN:{tz(e,r);break}case H.HR:{x3e(e,r);break}case H.RB:case H.RTC:{T3e(e,r);break}case H.RT:case H.RP:{R3e(e,r);break}case H.PRE:case H.LISTING:{s3e(e,r);break}case H.XMP:{_3e(e,r);break}case H.SVG:{N3e(e,r);break}case H.HTML:{n3e(e,r);break}case H.BASE:case H.LINK:case H.META:case H.STYLE:case H.TITLE:case H.SCRIPT:case H.BGSOUND:case H.BASEFONT:case H.TEMPLATE:{Hi(e,r);break}case H.BODY:{o3e(e,r);break}case H.FORM:{c3e(e,r);break}case H.NOBR:{m3e(e,r);break}case H.MATH:{A3e(e,r);break}case H.TABLE:{y3e(e,r);break}case H.INPUT:{b3e(e,r);break}case H.PARAM:case H.TRACK:case H.SOURCE:{v3e(e,r);break}case H.IMAGE:{w3e(e,r);break}case H.BUTTON:{p3e(e,r);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{g3e(e,r);break}case H.IFRAME:{E3e(e,r);break}case H.SELECT:{S3e(e,r);break}case H.OPTION:case H.OPTGROUP:{C3e(e,r);break}case H.NOEMBED:case H.NOFRAMES:{nz(e,r);break}case H.FRAMESET:{a3e(e,r);break}case H.TEXTAREA:{k3e(e,r);break}case H.NOSCRIPT:{e.options.scriptingEnabled?nz(e,r):oz(e,r);break}case H.PLAINTEXT:{d3e(e,r);break}case H.COL:case H.TH:case H.TD:case H.TR:case H.HEAD:case H.FRAME:case H.TBODY:case H.TFOOT:case H.THEAD:case H.CAPTION:case H.COLGROUP:break;default:oz(e,r)}}function D3e(e,r){if(e.openElements.hasInScope(H.BODY)&&(e.insertionMode=le.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,r)}}function $3e(e,r){e.openElements.hasInScope(H.BODY)&&(e.insertionMode=le.AFTER_BODY,fz(e,r))}function P3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function O3e(e){const r=e.openElements.tmplCount>0,{formElement:n}=e;r||(e.formElement=null),(n||r)&&e.openElements.hasInScope(H.FORM)&&(e.openElements.generateImpliedEndTags(),r?e.openElements.popUntilTagNamePopped(H.FORM):n&&e.openElements.remove(n))}function M3e(e){e.openElements.hasInButtonScope(H.P)||e._insertFakeElement(me.P,H.P),e._closePElement()}function I3e(e){e.openElements.hasInListItemScope(H.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(H.LI),e.openElements.popUntilTagNamePopped(H.LI))}function L3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function z3e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function j3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function B3e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(me.BR,H.BR),e.openElements.pop(),e.framesetOk=!1}function az(e,r){const n=r.tagName,o=r.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],l=e.openElements.tagIDs[a];if(o===l&&(o!==H.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,l))break}}function g3(e,r){switch(r.tagID){case H.A:case H.B:case H.I:case H.S:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.NOBR:case H.SMALL:case H.STRIKE:case H.STRONG:{W6(e,r);break}case H.P:{M3e(e);break}case H.DL:case H.UL:case H.OL:case H.DIR:case H.DIV:case H.NAV:case H.PRE:case H.MAIN:case H.MENU:case H.ASIDE:case H.BUTTON:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.ADDRESS:case H.ARTICLE:case H.DETAILS:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.LISTING:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{P3e(e,r);break}case H.LI:{I3e(e);break}case H.DD:case H.DT:{L3e(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{z3e(e);break}case H.BR:{B3e(e);break}case H.BODY:{D3e(e,r);break}case H.HTML:{$3e(e,r);break}case H.FORM:{O3e(e);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{j3e(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:az(e,r)}}function iz(e,r){e.tmplInsertionModeStack.length>0?hz(e,r):X6(e,r)}function F3e(e,r){var n;r.tagID===H.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function H3e(e,r){e._err(r,Ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(r)}function K6(e,r){if(KL.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=le.IN_TABLE_TEXT,r.type){case Ht.CHARACTER:{sz(e,r);break}case Ht.WHITESPACE_CHARACTER:{lz(e,r);break}}else O1(e,r)}function U3e(e,r){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(r,Pe.HTML),e.insertionMode=le.IN_CAPTION}function q3e(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,Pe.HTML),e.insertionMode=le.IN_COLUMN_GROUP}function V3e(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.COLGROUP,H.COLGROUP),e.insertionMode=le.IN_COLUMN_GROUP,Z6(e,r)}function Y3e(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,Pe.HTML),e.insertionMode=le.IN_TABLE_BODY}function W3e(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.TBODY,H.TBODY),e.insertionMode=le.IN_TABLE_BODY,b3(e,r)}function G3e(e,r){e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode(),e._processStartTag(r))}function X3e(e,r){rz(r)?e._appendElement(r,Pe.HTML):O1(e,r),r.ackSelfClosing=!0}function K3e(e,r){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(r,Pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Fh(e,r){switch(r.tagID){case H.TD:case H.TH:case H.TR:{W3e(e,r);break}case H.STYLE:case H.SCRIPT:case H.TEMPLATE:{Hi(e,r);break}case H.COL:{V3e(e,r);break}case H.FORM:{K3e(e,r);break}case H.TABLE:{G3e(e,r);break}case H.TBODY:case H.TFOOT:case H.THEAD:{Y3e(e,r);break}case H.INPUT:{X3e(e,r);break}case H.CAPTION:{U3e(e,r);break}case H.COLGROUP:{q3e(e,r);break}default:O1(e,r)}}function P1(e,r){switch(r.tagID){case H.TABLE:{e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TBODY:case H.TD:case H.TFOOT:case H.TH:case H.THEAD:case H.TR:break;default:O1(e,r)}}function O1(e,r){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,m3(e,r),e.fosterParentingEnabled=n}function lz(e,r){e.pendingCharacterTokens.push(r)}function sz(e,r){e.pendingCharacterTokens.push(r),e.hasNonWhitespacePendingCharacterToken=!0}function M1(e,r){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===H.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===H.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop();break}case H.OPTION:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop();break}case H.SELECT:{e.openElements.hasInSelectScope(H.SELECT)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}}}function rxe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e._processStartTag(r)):dz(e,r)}function nxe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e.onEndTag(r)):pz(e,r)}function oxe(e,r){switch(r.tagID){case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{Hi(e,r);break}case H.CAPTION:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:{e.tmplInsertionModeStack[0]=le.IN_TABLE,e.insertionMode=le.IN_TABLE,Fh(e,r);break}case H.COL:{e.tmplInsertionModeStack[0]=le.IN_COLUMN_GROUP,e.insertionMode=le.IN_COLUMN_GROUP,Z6(e,r);break}case H.TR:{e.tmplInsertionModeStack[0]=le.IN_TABLE_BODY,e.insertionMode=le.IN_TABLE_BODY,b3(e,r);break}case H.TD:case H.TH:{e.tmplInsertionModeStack[0]=le.IN_ROW,e.insertionMode=le.IN_ROW,v3(e,r);break}default:e.tmplInsertionModeStack[0]=le.IN_BODY,e.insertionMode=le.IN_BODY,So(e,r)}}function axe(e,r){r.tagID===H.TEMPLATE&&Sd(e,r)}function hz(e,r){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(r)):X6(e,r)}function ixe(e,r){r.tagID===H.HTML?So(e,r):x3(e,r)}function fz(e,r){var n;if(r.tagID===H.HTML){if(e.fragmentContext||(e.insertionMode=le.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===H.HTML){e._setEndLocation(e.openElements.items[0],r);const o=e.openElements.items[1];o&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(o))===null||n===void 0)&&n.endTag)&&e._setEndLocation(o,r)}}else x3(e,r)}function x3(e,r){e.insertionMode=le.IN_BODY,m3(e,r)}function lxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.FRAMESET:{e._insertElement(r,Pe.HTML);break}case H.FRAME:{e._appendElement(r,Pe.HTML),r.ackSelfClosing=!0;break}case H.NOFRAMES:{Hi(e,r);break}}}function sxe(e,r){r.tagID===H.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==H.FRAMESET&&(e.insertionMode=le.AFTER_FRAMESET))}function cxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function uxe(e,r){r.tagID===H.HTML&&(e.insertionMode=le.AFTER_AFTER_FRAMESET)}function dxe(e,r){r.tagID===H.HTML?So(e,r):w3(e,r)}function w3(e,r){e.insertionMode=le.IN_BODY,m3(e,r)}function pxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function hxe(e,r){r.chars=Mr,e._insertCharacters(r)}function fxe(e,r){e._insertCharacters(r),e.framesetOk=!1}function mz(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Pe.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function mxe(e,r){if(Nve(r))mz(e),e._startTagOutsideForeignContent(r);else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===Pe.MATHML?GL(r):o===Pe.SVG&&(Dve(r),XL(r)),Y6(r),r.selfClosing?e._appendElement(r,o):e._insertElement(r,o),r.ackSelfClosing=!0}}function gxe(e,r){if(r.tagID===H.P||r.tagID===H.BR){mz(e),e._endTagOutsideForeignContent(r);return}for(let n=e.openElements.stackTop;n>0;n--){const o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===Pe.HTML){e._endTagOutsideForeignContent(r);break}const a=e.treeAdapter.getTagName(o);if(a.toLowerCase()===r.tagName){r.tagName=a,e.openElements.shortenToLength(n);break}}}me.AREA,me.BASE,me.BASEFONT,me.BGSOUND,me.BR,me.COL,me.EMBED,me.FRAME,me.HR,me.IMG,me.INPUT,me.KEYGEN,me.LINK,me.META,me.PARAM,me.SOURCE,me.TRACK,me.WBR;const k3=gz("end"),zs=gz("start");function gz(e){return r;function r(n){const o=n&&n.position&&n.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function yz(e){const r=zs(e),n=k3(e);if(r&&n)return{start:r,end:n}}const _3=(function(e){if(e==null)return xxe;if(typeof e=="function")return E3(e);if(typeof e=="object")return Array.isArray(e)?yxe(e):bxe(e);if(typeof e=="string")return vxe(e);throw new Error("Expected function, string, or object as test")});function yxe(e){const r=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let g=bz,b,x,w;if((!r||i(c,u,d[d.length-1]||void 0))&&(g=Exe(n(c,d)),g[0]===J6))return g;if("children"in c&&c.children){const k=c;if(k.children&&g[0]!==_xe)for(x=(o?k.children.length:-1)+l,w=d.concat(k);x>-1&&x])/gi,Cxe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),xz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function wz(e,r){const n=Ixe(e),o=B6("type",{handlers:{root:Txe,element:Rxe,text:Axe,comment:_z,doctype:Nxe,raw:$xe},unknown:Pxe}),a={parser:n?new QL(xz):QL.getFragmentParser(void 0,xz),handle(s){o(s,a)},stitches:!1,options:r||{}};o(e,a),Hh(a,zs());const i=n?a.parser.document:a.parser.getFragment(),l=xbe(i,{file:a.options.file});return a.stitches&&eE(l,"comment",function(s,c,u){const d=s;if(d.value.stitch&&u&&c!==void 0){const p=u.children;return p[c]=d.value.stitch,c}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function kz(e,r){let n=-1;if(e)for(;++n4&&(r.parser.tokenizer.state=0);const n={type:Ht.CHARACTER,chars:e.value,location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Nxe(e,r){const n={type:Ht.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Dxe(e,r){r.stitches=!0;const n=Lxe(e);if("children"in e&&"children"in n){const o=wz({type:"root",children:e.children},r.options);n.children=o.children}_z({type:"comment",value:{stitch:n}},r)}function _z(e,r){const n=e.value,o={type:Ht.COMMENT,data:n,location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken)}function $xe(e,r){if(r.parser.tokenizer.preprocessor.html="",r.parser.tokenizer.preprocessor.pos=-1,r.parser.tokenizer.preprocessor.lastGapPos=-2,r.parser.tokenizer.preprocessor.gapStack=[],r.parser.tokenizer.preprocessor.skipNextNewLine=!1,r.parser.tokenizer.preprocessor.lastChunkWritten=!1,r.parser.tokenizer.preprocessor.endOfChunkHit=!1,r.parser.tokenizer.preprocessor.isEol=!1,Ez(r,zs(e)),r.parser.tokenizer.write(r.options.tagfilter?e.value.replace(Sxe,"<$1$2"):e.value,!1),r.parser.tokenizer._runParsingLoop(),r.parser.tokenizer.state===72||r.parser.tokenizer.state===78){r.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=r.parser.tokenizer._consume();r.parser.tokenizer._callState(n)}}function Pxe(e,r){const n=e;if(r.options.passThrough&&r.options.passThrough.includes(n.type))Dxe(n,r);else{let o="";throw Cxe.has(n.type)&&(o=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+o)}}function Hh(e,r){Ez(e,r);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=on.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ez(e,r){if(r&&r.offset!==void 0){const n={startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-r.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=r.offset,e.parser.tokenizer.preprocessor.line=r.line,e.parser.tokenizer.currentLocation=n}}function Oxe(e,r){const n=e.tagName.toLowerCase();if(r.parser.tokenizer.state===on.PLAINTEXT)return;Hh(r,zs(e));const o=r.parser.openElements.current;let a="namespaceURI"in o?o.namespaceURI:kd.html;a===kd.html&&n==="svg"&&(a=kd.svg);const i=Mbe({...e,children:[]},{space:a===kd.svg?"svg":"html"}),l={type:Ht.START_TAG,tagName:n,tagID:Bh(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:I1(e)};r.parser.currentToken=l,r.parser._processToken(r.parser.currentToken),r.parser.tokenizer.lastStartTagName=n}function Mxe(e,r){const n=e.tagName.toLowerCase();if(!r.parser.tokenizer.inForeignNode&&TL.includes(n)||r.parser.tokenizer.state===on.PLAINTEXT)return;Hh(r,k3(e));const o={type:Ht.END_TAG,tagName:n,tagID:Bh(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:I1(e)};r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken),n===r.parser.tokenizer.lastStartTagName&&(r.parser.tokenizer.state===on.RCDATA||r.parser.tokenizer.state===on.RAWTEXT||r.parser.tokenizer.state===on.SCRIPT_DATA)&&(r.parser.tokenizer.state=on.DATA)}function Ixe(e){const r=e.type==="root"?e.children[0]:e;return!!(r&&(r.type==="doctype"||r.type==="element"&&r.tagName.toLowerCase()==="html"))}function I1(e){const r=zs(e)||{line:void 0,column:void 0,offset:void 0},n=k3(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Lxe(e){return"children"in e?xd({...e,children:[]}):xd(e)}function zxe(e){return function(r,n){return wz(r,{...e,file:n})}}const Cd=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Sz={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cd,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cd],h2:[["className","sr-only"]],img:[...Cd,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cd,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cd],table:[...Cd],ul:[...Cd,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Xc={}.hasOwnProperty;function jxe(e,r){let n={type:"root",children:[]};const o={schema:r?{...Sz,...r}:Sz,stack:[]},a=Cz(o,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function Cz(e,r){if(r&&typeof r=="object"){const n=r;switch(typeof n.type=="string"?n.type:""){case"comment":return Bxe(e,n);case"doctype":return Fxe(e,n);case"element":return Hxe(e,n);case"root":return Uxe(e,n);case"text":return qxe(e,n)}}}function Bxe(e,r){if(e.schema.allowComments){const n=typeof r.value=="string"?r.value:"",o=n.indexOf("-->"),i={type:"comment",value:o<0?n:n.slice(0,o)};return L1(i,r),i}}function Fxe(e,r){if(e.schema.allowDoctypes){const n={type:"doctype"};return L1(n,r),n}}function Hxe(e,r){const n=typeof r.tagName=="string"?r.tagName:"";e.stack.push(n);const o=Tz(e,r.children),a=Vxe(e,r.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&Xc.call(e.schema.ancestors,n))){const s=e.schema.ancestors[n];let c=-1;for(i=!1;++c1){let a=!1,i=0;for(;++i-1&&i>c||l>-1&&i>l||s>-1&&i>s)return!0;let u=-1;for(;++u4&&r.slice(0,4).toLowerCase()==="data")return n}function Gxe(e){return function(r){return jxe(r,e)}}const Xxe=/["&'<>`]/g,Kxe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zxe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Qxe=/[|\\{}()[\]^$+*?.]/g,Dz=new WeakMap;function Jxe(e,r){if(e=e.replace(r.subset?ewe(r.subset):Xxe,o),r.subset||r.escapeOnly)return e;return e.replace(Kxe,n).replace(Zxe,o);function n(a,i,l){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),r)}function o(a,i,l){return r.format(a.charCodeAt(0),l.charCodeAt(i+1),r)}}function ewe(e){let r=Dz.get(e);return r||(r=twe(e),Dz.set(e,r)),r}function twe(e){const r=[];let n=-1;for(;++n",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},lwe=["cent","copy","divide","gt","lt","not","para","times"],$z={}.hasOwnProperty,rE={};let S3;for(S3 in tE)$z.call(tE,S3)&&(rE[tE[S3]]=S3);const swe=/[^\dA-Za-z]/;function cwe(e,r,n,o){const a=String.fromCharCode(e);if($z.call(rE,a)){const i=rE[a],l="&"+i;return n&&iwe.includes(i)&&!lwe.includes(i)&&(!o||r&&r!==61&&swe.test(String.fromCharCode(r)))?l:l+";"}return""}function uwe(e,r,n){let o=nwe(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=cwe(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=awe(e,r,n.omitOptionalSemicolons);i.length|^->||--!>|"],hwe=["<",">"];function fwe(e,r,n,o){return o.settings.bogusComments?""+Uh(e.value,Object.assign({},o.settings.characterReferences,{subset:pwe}))+">":"";function a(i){return Uh(i,Object.assign({},o.settings.characterReferences,{subset:hwe}))}}function mwe(e,r,n,o){return""}function C3(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}const gwe=/[ \t\n\f\r]/g;function nE(e){return typeof e=="object"?e.type==="text"?Pz(e.value):!1:Pz(e)}function Pz(e){return e.replace(gwe,"")===""}const Ln=Mz(1),Oz=Mz(-1),ywe=[];function Mz(e){return r;function r(n,o,a){const i=n?n.children:ywe;let l=(o||0)+e,s=i[l];if(!a)for(;s&&nE(s);)l+=e,s=i[l];return s}}const bwe={}.hasOwnProperty;function Iz(e){return r;function r(n,o,a){return bwe.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const oE=Iz({body:xwe,caption:aE,colgroup:aE,dd:Ewe,dt:_we,head:aE,html:vwe,li:kwe,optgroup:Swe,option:Cwe,p:wwe,rp:Lz,rt:Lz,tbody:Rwe,td:zz,tfoot:Awe,th:zz,thead:Twe,tr:Nwe});function aE(e,r,n){const o=Ln(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&nE(o.value.charAt(0)))}function vwe(e,r,n){const o=Ln(n,r);return!o||o.type!=="comment"}function xwe(e,r,n){const o=Ln(n,r);return!o||o.type!=="comment"}function wwe(e,r,n){const o=Ln(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function kwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="li"}function _we(e,r,n){const o=Ln(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Ewe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function Lz(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Swe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function Cwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Twe(e,r,n){const o=Ln(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Rwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Awe(e,r,n){return!Ln(n,r)}function Nwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function zz(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const Dwe=Iz({body:Owe,colgroup:Mwe,head:Pwe,html:$we,tbody:Iwe});function $we(e){const r=Ln(e,-1);return!r||r.type!=="comment"}function Pwe(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function Owe(e){const r=Ln(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&nE(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function Mwe(e,r,n){const o=Oz(n,r),a=Ln(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&oE(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Iwe(e,r,n){const o=Oz(n,r),a=Ln(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&oE(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const T3={name:[[`
+ */var e=function(r,n){var o,a,i=1,l=0,s=0,c=String.alphabet;function u(d,p,f){if(f){for(o=p;f=u(d,o),f<76&&f>65;)++o;return+d.slice(p-1,o)}return f=c&&c.indexOf(d.charAt(p)),f>-1?f+76:(f=d.charCodeAt(p)||0,f<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-63)}if((r+="")!=(n+="")){for(;i;)if(a=u(r,l++),i=u(n,s++),a<76&&i<76&&a>66&&i>66&&(a=u(r,l,l),i=u(n,s,l=o),s=o),a!=i)return a{if(n===o)return 0;if(!n)return-1;if(!o)return 1;const a=n.split(e),i=o.split(e),l=Math.min(a.length,i.length);for(let c=0;c0?e.slice(0,r):null}function g1(e){const r=e.lastIndexOf(".");return r>0?e.slice(r+1):e}const y1=e=>x_(e)?e:e.id;function qn(e,r){const n=y1(e);return r?y1(r).startsWith(n+"."):o=>{const a=y1(o);return n.startsWith(a+".")}}function DI(e,r){if(!r)return a=>DI(e,a);const n=y1(e),o=y1(r);return n===o||o.startsWith(n+".")||n.startsWith(o+".")}function PI(e,r){return n=>qn(e,n)}function o3(e){return(x_(e)?e:e.id).split(".").length}function b1(e,r){const n=e.split(".");if(n.length<2)return null;const o=r.split(".");if(o.length<2)return null;let a=[];for(let i=0;ia===0?(n.push(o),n):(n.unshift(`${n[0]}.${o}`),n),[])}function Hye(e,r){let n=r;for(const o of e)qn(o,n)&&(n=o);return n!==r?n:null}function Vc(e){const r=[],n=[...e];let o;for(;o=n.shift();){let a;for(;a=Hye(n,o);)r.push(n.splice(n.indexOf(a),1)[0]);r.push(o)}return r}function $I(e,r){if(!e||x_(e)){const o=e??"asc";return a=>$I(a,o)}const n=r==="desc"?-1:1;return e.map(o=>({item:o,fqn:o.id.split(".")})).sort((o,a)=>{if(o.fqn.length!==a.fqn.length)return(o.fqn.length-a.fqn.length)*n;for(let i=0;io)}var a3={},MI;function qye(){return MI||(MI=1,a3.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",a3.SYMBOL_SUPPORT=typeof Symbol<"u"),a3}var w_,OI;function Uye(){if(OI)return w_;OI=1;function e(r){if(typeof r!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=r}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var r=arguments,n=r.length,o=0;return new e(function(){return o>=n?{done:!0}:{done:!1,value:r[o++]}})},e.empty=function(){var r=new e(function(){return{done:!0}});return r},e.fromSequence=function(r){var n=0,o=r.length;return new e(function(){return n>=o?{done:!0}:{done:!1,value:r[n++]}})},e.is=function(r){return r instanceof e?!0:typeof r=="object"&&r!==null&&typeof r.next=="function"},w_=e,w_}var k_,II;function Vye(){if(II)return k_;II=1;var e=qye(),r=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return k_=function(a,i){var l,s,c,u,d;if(!a)throw new Error("obliterator/forEach: invalid iterable.");if(typeof i!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(a)||r&&ArrayBuffer.isView(a)||typeof a=="string"||a.toString()==="[object Arguments]"){for(c=0,u=a.length;c=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,o}},n.prototype.peek=function(){if(this.size)return this.items[this.offset]},n.prototype.forEach=function(o,a){a=arguments.length>1?a:this;for(var i=this.offset,l=0,s=this.items.length;i=o.length)return{done:!0};var i=o[a];return a++,{value:i,done:!1}})},n.prototype.entries=function(){var o=this.items,a=this.offset,i=0;return new e(function(){if(a>=o.length)return{done:!0};var l=o[a];return a++,{value:[i++,l],done:!1}})},typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=n.prototype.values),n.prototype.toString=function(){return this.toArray().join(",")},n.prototype.toJSON=function(){return this.toArray()},n.prototype.inspect=function(){var o=this.toArray();return Object.defineProperty(o,"constructor",{value:n,enumerable:!1}),o},typeof Symbol<"u"&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),n.from=function(o){var a=new n;return r(o,function(i){a.enqueue(i)}),a},n.of=function(){return n.from(arguments)},__=n,__}var Wye=Yye();const E_=t3(Wye);var S_,zI;function Gye(){if(zI)return S_;zI=1;function e(r){if(typeof r!="function")throw new Error("mnemonist/DefaultMap.constructor: expecting a function.");this.items=new Map,this.factory=r,this.size=0}return e.prototype.clear=function(){this.items.clear(),this.size=0},e.prototype.get=function(r){var n=this.items.get(r);return typeof n>"u"&&(n=this.factory(r,this.size),this.items.set(r,n),this.size++),n},e.prototype.peek=function(r){return this.items.get(r)},e.prototype.set=function(r,n){return this.items.set(r,n),this.size=this.items.size,this},e.prototype.has=function(r){return this.items.has(r)},e.prototype.delete=function(r){var n=this.items.delete(r);return this.size=this.items.size,n},e.prototype.forEach=function(r,n){n=arguments.length>1?n:this,this.items.forEach(r,n)},e.prototype.entries=function(){return this.items.entries()},e.prototype.keys=function(){return this.items.keys()},e.prototype.values=function(){return this.items.values()},typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=e.prototype.entries),e.prototype.inspect=function(){return this.items},typeof Symbol<"u"&&(e.prototype[Symbol.for("nodejs.util.inspect.custom")]=e.prototype.inspect),e.autoIncrement=function(){var r=0;return function(){return r++}},S_=e,S_}var Xye=Gye();const so=t3(Xye);function i3(e){return e.summary??e.description}function l3(e){return e.description??e.summary}function Is(e){return!!e}const vd="@group";function Kye(e){return e.kind===vd}function BI(e,r){return nt(typeof e=="string"&&e!=""),"@"+e+"."+r}function Zye(e){return e.startsWith("@")}function Qye(e){if(!e.startsWith("@"))return[null,e];const r=e.indexOf(".");if(r<2)throw new Error("Invalid global FQN");const n=e.slice(1,r),o=e.slice(r+1);return[n,o]}function v1(e){return e.startsWith("step-")}function jI(e){if(!v1(e))throw new Error(`Invalid step edge id: ${e}`);return parseFloat(e.slice(5))}const FI=-1,s3=0,x1=1,c3=2,C_=3,T_=4,R_=5,A_=6,HI=7,qI=8,UI=typeof self=="object"?self:globalThis,Jye=(e,r)=>{const n=(a,i)=>(e.set(i,a),a),o=a=>{if(e.has(a))return e.get(a);const[i,l]=r[a];switch(i){case s3:case FI:return n(l,a);case x1:{const s=n([],a);for(const c of l)s.push(o(c));return s}case c3:{const s=n({},a);for(const[c,u]of l)s[o(c)]=o(u);return s}case C_:return n(new Date(l),a);case T_:{const{source:s,flags:c}=l;return n(new RegExp(s,c),a)}case R_:{const s=n(new Map,a);for(const[c,u]of l)s.set(o(c),o(u));return s}case A_:{const s=n(new Set,a);for(const c of l)s.add(o(c));return s}case HI:{const{name:s,message:c}=l;return n(new UI[s](c),a)}case qI:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return n(new DataView(s),l)}}return n(new UI[i](l),a)};return o},VI=e=>Jye(new Map,e)(0),$h="",{toString:ebe}={},{keys:tbe}=Object,w1=e=>{const r=typeof e;if(r!=="object"||!e)return[s3,r];const n=ebe.call(e).slice(8,-1);switch(n){case"Array":return[x1,$h];case"Object":return[c3,$h];case"Date":return[C_,$h];case"RegExp":return[T_,$h];case"Map":return[R_,$h];case"Set":return[A_,$h];case"DataView":return[x1,n]}return n.includes("Array")?[x1,n]:n.includes("Error")?[HI,n]:[c3,n]},u3=([e,r])=>e===s3&&(r==="function"||r==="symbol"),rbe=(e,r,n,o)=>{const a=(l,s)=>{const c=o.push(l)-1;return n.set(s,c),c},i=l=>{if(n.has(l))return n.get(l);let[s,c]=w1(l);switch(s){case s3:{let d=l;switch(c){case"bigint":s=qI,d=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return a([FI],l)}return a([s,d],l)}case x1:{if(c){let f=l;return c==="DataView"?f=new Uint8Array(l.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(l)),a([c,[...f]],l)}const d=[],p=a([s,d],l);for(const f of l)d.push(i(f));return p}case c3:{if(c)switch(c){case"BigInt":return a([c,l.toString()],l);case"Boolean":case"Number":case"String":return a([c,l.valueOf()],l)}if(r&&"toJSON"in l)return i(l.toJSON());const d=[],p=a([s,d],l);for(const f of tbe(l))(e||!u3(w1(l[f])))&&d.push([i(f),i(l[f])]);return p}case C_:return a([s,l.toISOString()],l);case T_:{const{source:d,flags:p}=l;return a([s,{source:d,flags:p}],l)}case R_:{const d=[],p=a([s,d],l);for(const[f,g]of l)(e||!(u3(w1(f))||u3(w1(g))))&&d.push([i(f),i(g)]);return p}case A_:{const d=[],p=a([s,d],l);for(const f of l)(e||!u3(w1(f)))&&d.push(i(f));return p}}const{message:u}=l;return a([s,{name:c,message:u}],l)};return i},YI=(e,{json:r,lossy:n}={})=>{const o=[];return rbe(!(r||n),!!r,new Map,o)(e),o},xd=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?VI(YI(e,r)):structuredClone(e):(e,r)=>VI(YI(e,r));function x6t(){}let k1=class{constructor(r,n,o){this.normal=n,this.property=r,o&&(this.space=o)}};k1.prototype.normal={},k1.prototype.property={},k1.prototype.space=void 0;function WI(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new k1(n,o,r)}function _1(e){return e.toLowerCase()}let Go=class{constructor(r,n){this.attribute=n,this.property=r}};Go.prototype.attribute="",Go.prototype.booleanish=!1,Go.prototype.boolean=!1,Go.prototype.commaOrSpaceSeparated=!1,Go.prototype.commaSeparated=!1,Go.prototype.defined=!1,Go.prototype.mustUseProperty=!1,Go.prototype.number=!1,Go.prototype.overloadedBoolean=!1,Go.prototype.property="",Go.prototype.spaceSeparated=!1,Go.prototype.space=void 0;let nbe=0;const Mt=wd(),mn=wd(),GI=wd(),He=wd(),_r=wd(),Mh=wd(),va=wd();function wd(){return 2**++nbe}const N_={__proto__:null,boolean:Mt,booleanish:mn,commaOrSpaceSeparated:va,commaSeparated:Mh,number:He,overloadedBoolean:GI,spaceSeparated:_r},D_=Object.keys(N_);let P_=class extends Go{constructor(r,n,o,a){let i=-1;if(super(r,n),XI(this,"space",a),typeof o=="number")for(;++i4&&n.slice(0,4)==="data"&&lbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(rL,cbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!rL.test(i)){let l=i.replace(ibe,sbe);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=P_}return new a(o,r)}function sbe(e){return"-"+e.toLowerCase()}function cbe(e){return e.charAt(1).toUpperCase()}const d3=WI([KI,obe,JI,eL,tL],"html"),E1=WI([KI,abe,JI,eL,tL],"svg");function nL(e){const r=[],n=String(e||"");let o=n.indexOf(","),a=0,i=!1;for(;!i;){o===-1&&(o=n.length,i=!0);const l=n.slice(a,o).trim();(l||!i)&&r.push(l),a=o+1,o=n.indexOf(",",a)}return r}function oL(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const aL=/[#.]/g;function ube(e,r){const n=e||"",o={};let a=0,i,l;for(;a-1&&i<=r.length){let l=0;for(;;){let s=n[l];if(s===void 0){const c=uL(r,n[l-1]);s=c===-1?r.length+1:c+1,n[l]=s}if(s>i)return{line:l+1,column:i-(l>0?n[l-1]:0)+1,offset:i};l++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length1?n[i.line-2]:0)+i.column-1;if(l4&&n.slice(0,4)==="data"&&Tbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(_L,Dbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!_L.test(i)){let l=i.replace(Rbe,Nbe);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=B_}return new a(o,r)}function Nbe(e){return"-"+e.toLowerCase()}function Dbe(e){return e.charAt(1).toUpperCase()}const Pbe=fL([bL,yL,wL,kL,Sbe],"html"),EL=fL([bL,yL,wL,kL,Cbe],"svg"),SL={}.hasOwnProperty;function j_(e,r){const n=r||{};function o(a,...i){let l=o.invalid;const s=o.handlers;if(a&&SL.call(a,e)){const c=String(a[e]);l=SL.call(s,c)?s[c]:o.unknown}if(l)return l.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const $be={},Mbe={}.hasOwnProperty,CL=j_("type",{handlers:{root:Ibe,element:Fbe,text:Bbe,comment:jbe,doctype:zbe}});function Obe(e,r){const o=(r||$be).space;return CL(e,o==="svg"?EL:Pbe)}function Ibe(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=F_(e.children,n,r),Bh(e,n),n}function Lbe(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=F_(e.children,n,r),Bh(e,n),n}function zbe(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Bh(e,r),r}function Bbe(e){const r={nodeName:"#text",value:e.value,parentNode:null};return Bh(e,r),r}function jbe(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return Bh(e,r),r}function Fbe(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=EL);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Mbe.call(e.properties,i)){const c=Hbe(o,i,e.properties[i]);c&&a.push(c)}}const l=o.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:kd[l],childNodes:[],parentNode:null};return s.childNodes=F_(e.children,s,o),Bh(e,s),e.tagName==="template"&&e.content&&(s.content=Lbe(e.content,o)),s}function Hbe(e,r,n){const o=Abe(e,r);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&o.boolean)return;Array.isArray(n)&&(n=o.commaSeparated?oL(n):lL(n));const a={name:o.attribute,value:n===!0?"":String(n)};if(o.space&&o.space!=="html"&&o.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=o.attribute.slice(0,i)),a.namespace=kd[o.space]}return a}function F_(e,r,n){let o=-1;const a=[];if(e)for(;++o=55296&&e<=57343}function Ube(e){return e>=56320&&e<=57343}function Vbe(e,r){return(e-55296)*1024+9216+r}function AL(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function NL(e){return e>=64976&&e<=65007||qbe.has(e)}var Ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ee||(Ee={}));const Ybe=65536;class Wbe{constructor(r){this.handler=r,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ybe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(r,n){const{line:o,col:a,offset:i}=this,l=a+n,s=i+n;return{code:r,startLine:o,endLine:o,startCol:l,endCol:l,startOffset:s,endOffset:s}}_err(r){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(r,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(r){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Ube(n))return this.pos++,this._addGap(),Vbe(r,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Ee.surrogateInInputStream),r}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(r,n){this.html.length>0?this.html+=r:this.html=r,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(r){this.html=this.html.substring(0,this.pos+1)+r+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(r,n){if(this.pos+r.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(r,this.pos);for(let o=0;o=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;const o=this.html.charCodeAt(n);return o===ne.CARRIAGE_RETURN?ne.LINE_FEED:o}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;let r=this.html.charCodeAt(this.pos);return r===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):r===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,RL(r)&&(r=this._processSurrogate(r)),this.handler.onParseError===null||r>31&&r<127||r===ne.LINE_FEED||r===ne.CARRIAGE_RETURN||r>159&&r<64976||this._checkForProblematicCharacters(r),r)}_checkForProblematicCharacters(r){AL(r)?this._err(Ee.controlCharacterInInputStream):NL(r)&&this._err(Ee.noncharacterInInputStream)}retreat(r){for(this.pos-=r;this.pos=0;n--)if(e.attrs[n].name===r)return e.attrs[n].value;return null}const PL=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Gbe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var H_;const Xbe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Kbe=(H_=String.fromCodePoint)!==null&&H_!==void 0?H_:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function Zbe(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=Xbe.get(e))!==null&&r!==void 0?r:e}var Un;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Un||(Un={}));const Qbe=32;var Yc;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yc||(Yc={}));function q_(e){return e>=Un.ZERO&&e<=Un.NINE}function Jbe(e){return e>=Un.UPPER_A&&e<=Un.UPPER_F||e>=Un.LOWER_A&&e<=Un.LOWER_F}function eve(e){return e>=Un.UPPER_A&&e<=Un.UPPER_Z||e>=Un.LOWER_A&&e<=Un.LOWER_Z||q_(e)}function tve(e){return e===Un.EQUALS||eve(e)}var Vn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Vn||(Vn={}));var Ls;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ls||(Ls={}));let $L=class{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=Vn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ls.Strict}startEntity(r){this.decodeMode=r,this.state=Vn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case Vn.EntityStart:return r.charCodeAt(n)===Un.NUM?(this.state=Vn.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=Vn.NamedEntity,this.stateNamedEntity(r,n));case Vn.NumericStart:return this.stateNumericStart(r,n);case Vn.NumericDecimal:return this.stateNumericDecimal(r,n);case Vn.NumericHex:return this.stateNumericHex(r,n);case Vn.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Qbe)===Un.LOWER_X?(this.state=Vn.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=Vn.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,o,a){if(n!==o){const i=o-n;this.result=this.result*Math.pow(a,i)+parseInt(r.substr(n,i),a),this.consumed+=i}}stateNumericHex(r,n){const o=n;for(;n>14;for(;n>14,i!==0){if(l===Un.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ls.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:o}=this,a=(o[n]&Yc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,o){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[r]&~Yc.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case Vn.NamedEntity:return this.result!==0&&(this.decodeMode!==Ls.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Vn.NumericDecimal:return this.emitNumericEntity(0,2);case Vn.NumericHex:return this.emitNumericEntity(0,3);case Vn.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Vn.EntityStart:return 0}}};function ML(e){let r="";const n=new $L(e,o=>r+=Kbe(o));return function(a,i){let l=0,s=0;for(;(s=a.indexOf("&",s))>=0;){r+=a.slice(l,s),n.startEntity(i);const u=n.write(a,s+1);if(u<0){l=s+n.end();break}l=s+u,s=u===0?l+1:l}const c=r+a.slice(l);return r="",c}}function rve(e,r,n,o){const a=(r&Yc.BRANCH_LENGTH)>>7,i=r&Yc.JUMP_TABLE;if(a===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=a?-1:e[n+c]-1}let l=n,s=l+a-1;for(;l<=s;){const c=l+s>>>1,u=e[c];if(uo)s=c-1;else return e[c+a]}return-1}ML(PL),ML(Gbe);var $e;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})($e||($e={}));var Ed;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ed||(Ed={}));var Ja;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ja||(Ja={}));var me;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(me||(me={}));var H;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(H||(H={}));const nve=new Map([[me.A,H.A],[me.ADDRESS,H.ADDRESS],[me.ANNOTATION_XML,H.ANNOTATION_XML],[me.APPLET,H.APPLET],[me.AREA,H.AREA],[me.ARTICLE,H.ARTICLE],[me.ASIDE,H.ASIDE],[me.B,H.B],[me.BASE,H.BASE],[me.BASEFONT,H.BASEFONT],[me.BGSOUND,H.BGSOUND],[me.BIG,H.BIG],[me.BLOCKQUOTE,H.BLOCKQUOTE],[me.BODY,H.BODY],[me.BR,H.BR],[me.BUTTON,H.BUTTON],[me.CAPTION,H.CAPTION],[me.CENTER,H.CENTER],[me.CODE,H.CODE],[me.COL,H.COL],[me.COLGROUP,H.COLGROUP],[me.DD,H.DD],[me.DESC,H.DESC],[me.DETAILS,H.DETAILS],[me.DIALOG,H.DIALOG],[me.DIR,H.DIR],[me.DIV,H.DIV],[me.DL,H.DL],[me.DT,H.DT],[me.EM,H.EM],[me.EMBED,H.EMBED],[me.FIELDSET,H.FIELDSET],[me.FIGCAPTION,H.FIGCAPTION],[me.FIGURE,H.FIGURE],[me.FONT,H.FONT],[me.FOOTER,H.FOOTER],[me.FOREIGN_OBJECT,H.FOREIGN_OBJECT],[me.FORM,H.FORM],[me.FRAME,H.FRAME],[me.FRAMESET,H.FRAMESET],[me.H1,H.H1],[me.H2,H.H2],[me.H3,H.H3],[me.H4,H.H4],[me.H5,H.H5],[me.H6,H.H6],[me.HEAD,H.HEAD],[me.HEADER,H.HEADER],[me.HGROUP,H.HGROUP],[me.HR,H.HR],[me.HTML,H.HTML],[me.I,H.I],[me.IMG,H.IMG],[me.IMAGE,H.IMAGE],[me.INPUT,H.INPUT],[me.IFRAME,H.IFRAME],[me.KEYGEN,H.KEYGEN],[me.LABEL,H.LABEL],[me.LI,H.LI],[me.LINK,H.LINK],[me.LISTING,H.LISTING],[me.MAIN,H.MAIN],[me.MALIGNMARK,H.MALIGNMARK],[me.MARQUEE,H.MARQUEE],[me.MATH,H.MATH],[me.MENU,H.MENU],[me.META,H.META],[me.MGLYPH,H.MGLYPH],[me.MI,H.MI],[me.MO,H.MO],[me.MN,H.MN],[me.MS,H.MS],[me.MTEXT,H.MTEXT],[me.NAV,H.NAV],[me.NOBR,H.NOBR],[me.NOFRAMES,H.NOFRAMES],[me.NOEMBED,H.NOEMBED],[me.NOSCRIPT,H.NOSCRIPT],[me.OBJECT,H.OBJECT],[me.OL,H.OL],[me.OPTGROUP,H.OPTGROUP],[me.OPTION,H.OPTION],[me.P,H.P],[me.PARAM,H.PARAM],[me.PLAINTEXT,H.PLAINTEXT],[me.PRE,H.PRE],[me.RB,H.RB],[me.RP,H.RP],[me.RT,H.RT],[me.RTC,H.RTC],[me.RUBY,H.RUBY],[me.S,H.S],[me.SCRIPT,H.SCRIPT],[me.SEARCH,H.SEARCH],[me.SECTION,H.SECTION],[me.SELECT,H.SELECT],[me.SOURCE,H.SOURCE],[me.SMALL,H.SMALL],[me.SPAN,H.SPAN],[me.STRIKE,H.STRIKE],[me.STRONG,H.STRONG],[me.STYLE,H.STYLE],[me.SUB,H.SUB],[me.SUMMARY,H.SUMMARY],[me.SUP,H.SUP],[me.TABLE,H.TABLE],[me.TBODY,H.TBODY],[me.TEMPLATE,H.TEMPLATE],[me.TEXTAREA,H.TEXTAREA],[me.TFOOT,H.TFOOT],[me.TD,H.TD],[me.TH,H.TH],[me.THEAD,H.THEAD],[me.TITLE,H.TITLE],[me.TR,H.TR],[me.TRACK,H.TRACK],[me.TT,H.TT],[me.U,H.U],[me.UL,H.UL],[me.SVG,H.SVG],[me.VAR,H.VAR],[me.WBR,H.WBR],[me.XMP,H.XMP]]);function jh(e){var r;return(r=nve.get(e))!==null&&r!==void 0?r:H.UNKNOWN}const Ie=H,ove={[$e.HTML]:new Set([Ie.ADDRESS,Ie.APPLET,Ie.AREA,Ie.ARTICLE,Ie.ASIDE,Ie.BASE,Ie.BASEFONT,Ie.BGSOUND,Ie.BLOCKQUOTE,Ie.BODY,Ie.BR,Ie.BUTTON,Ie.CAPTION,Ie.CENTER,Ie.COL,Ie.COLGROUP,Ie.DD,Ie.DETAILS,Ie.DIR,Ie.DIV,Ie.DL,Ie.DT,Ie.EMBED,Ie.FIELDSET,Ie.FIGCAPTION,Ie.FIGURE,Ie.FOOTER,Ie.FORM,Ie.FRAME,Ie.FRAMESET,Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6,Ie.HEAD,Ie.HEADER,Ie.HGROUP,Ie.HR,Ie.HTML,Ie.IFRAME,Ie.IMG,Ie.INPUT,Ie.LI,Ie.LINK,Ie.LISTING,Ie.MAIN,Ie.MARQUEE,Ie.MENU,Ie.META,Ie.NAV,Ie.NOEMBED,Ie.NOFRAMES,Ie.NOSCRIPT,Ie.OBJECT,Ie.OL,Ie.P,Ie.PARAM,Ie.PLAINTEXT,Ie.PRE,Ie.SCRIPT,Ie.SECTION,Ie.SELECT,Ie.SOURCE,Ie.STYLE,Ie.SUMMARY,Ie.TABLE,Ie.TBODY,Ie.TD,Ie.TEMPLATE,Ie.TEXTAREA,Ie.TFOOT,Ie.TH,Ie.THEAD,Ie.TITLE,Ie.TR,Ie.TRACK,Ie.UL,Ie.WBR,Ie.XMP]),[$e.MATHML]:new Set([Ie.MI,Ie.MO,Ie.MN,Ie.MS,Ie.MTEXT,Ie.ANNOTATION_XML]),[$e.SVG]:new Set([Ie.TITLE,Ie.FOREIGN_OBJECT,Ie.DESC]),[$e.XLINK]:new Set,[$e.XML]:new Set,[$e.XMLNS]:new Set},U_=new Set([Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6]);me.STYLE,me.SCRIPT,me.XMP,me.IFRAME,me.NOEMBED,me.NOFRAMES,me.PLAINTEXT;var ae;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ae||(ae={}));const on={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function ave(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function C1(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function ive(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Wc(e){return ive(e)||C1(e)}function OL(e){return Wc(e)||ave(e)}function h3(e){return e+32}function IL(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function LL(e){return IL(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}function lve(e){return e===ne.NULL?Ee.nullCharacterReference:e>1114111?Ee.characterReferenceOutsideUnicodeRange:RL(e)?Ee.surrogateCharacterReference:NL(e)?Ee.noncharacterCharacterReference:AL(e)||e===ne.CARRIAGE_RETURN?Ee.controlCharacterReference:null}class sve{constructor(r,n){this.options=r,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ae.DATA,this.returnState=ae.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Wbe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new $L(PL,(o,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(o)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:o=>{this._err(Ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+o)},validateNumericCharacterReference:o=>{const a=lve(o);a&&this._err(a,1)}}:void 0)}_err(r,n=0){var o,a;(a=(o=this.handler).onParseError)===null||a===void 0||a.call(o,this.preprocessor.getError(r,n))}getCurrentLocation(r){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-r,startOffset:this.preprocessor.offset-r,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const r=this._consume();this._ensureHibernation()||this._callState(r)}this.inLoop=!1}}pause(){this.paused=!0}resume(r){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||r?.())}write(r,n,o){this.active=!0,this.preprocessor.write(r,n),this._runParsingLoop(),this.paused||o?.()}insertHtmlAtCurrentPos(r){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(r),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(r){this.consumedAfterSnapshot+=r;for(let n=0;n0&&this._err(Ee.endTagWithAttributes),r.selfClosing&&this._err(Ee.endTagWithTrailingSolidus),this.handler.onEndTag(r)),this.preprocessor.dropParsedChunk()}emitCurrentComment(r){this.prepareToken(r),this.handler.onComment(r),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(r){this.prepareToken(r),this.handler.onDoctype(r),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(r){if(this.currentCharacterToken){switch(r&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentCharacterToken.type){case Ht.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ht.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ht.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const r=this.getCurrentLocation(0);r&&(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset),this._emitCurrentCharacterToken(r),this.handler.onEof({type:Ht.EOF,location:r}),this.active=!1}_appendCharToCurrentCharacterToken(r,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===r){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(r,n)}_emitCodePoint(r){const n=IL(r)?Ht.WHITESPACE_CHARACTER:r===ne.NULL?Ht.NULL_CHARACTER:Ht.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(r))}_emitChars(r){this._appendCharToCurrentCharacterToken(Ht.CHARACTER,r)}_startCharacterReference(){this.returnState=this.state,this.state=ae.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ls.Attribute:Ls.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(r){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(r):this._emitCodePoint(r)}_callState(r){switch(this.state){case ae.DATA:{this._stateData(r);break}case ae.RCDATA:{this._stateRcdata(r);break}case ae.RAWTEXT:{this._stateRawtext(r);break}case ae.SCRIPT_DATA:{this._stateScriptData(r);break}case ae.PLAINTEXT:{this._statePlaintext(r);break}case ae.TAG_OPEN:{this._stateTagOpen(r);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(r);break}case ae.TAG_NAME:{this._stateTagName(r);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(r);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(r);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(r);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(r);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(r);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(r);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(r);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(r);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(r);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(r);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(r);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(r);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(r);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(r);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(r);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(r);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(r);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(r);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(r);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(r);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(r);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(r);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(r);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(r);break}case ae.COMMENT_START:{this._stateCommentStart(r);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(r);break}case ae.COMMENT:{this._stateComment(r);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(r);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(r);break}case ae.COMMENT_END:{this._stateCommentEnd(r);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(r);break}case ae.DOCTYPE:{this._stateDoctype(r);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(r);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(r);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(r);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(r);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(r);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(r);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(r);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(r);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(r);break}case ae.CDATA_SECTION:{this._stateCdataSection(r);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(r);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(r);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(r);break}default:throw new Error("Unknown state")}}_stateData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitCodePoint(r);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRcdata(r){switch(r){case ne.AMPERSAND:{this._startCharacterReference();break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRawtext(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_statePlaintext(r){switch(r){case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateTagOpen(r){if(Wc(r))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r);break}case ne.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(r)}}_stateEndTagOpen(r){if(Wc(r))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.GREATER_THAN_SIGN:{this._err(Ee.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars(""),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r)}}_stateTagName(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case ne.SOLIDUS:{this.state=ae.SELF_CLOSING_START_TAG;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.tagName+=Or;break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(C1(r)?h3(r):r)}}_stateRcdataLessThanSign(r){r===ne.SOLIDUS?this.state=ae.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRcdataEndTagOpen(r){Wc(r)?(this.state=ae.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(r)):(this._emitChars(""),this.state=ae.RCDATA,this._stateRcdata(r))}handleSpecialEndTag(r){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ae.BEFORE_ATTRIBUTE_NAME,!1;case ne.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ae.SELF_CLOSING_START_TAG,!1;case ne.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ae.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars(""),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRawtextLessThanSign(r){r===ne.SOLIDUS?this.state=ae.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagOpen(r){Wc(r)?(this.state=ae.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(r)):(this._emitChars(""),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars(""),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateScriptDataLessThanSign(r){switch(r){case ne.SOLIDUS:{this.state=ae.SCRIPT_DATA_END_TAG_OPEN;break}case ne.EXCLAMATION_MARK:{this.state=ae.SCRIPT_DATA_ESCAPE_START,this._emitChars("");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Or);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedLessThanSign(r){r===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Wc(r)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(r)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagOpen(r){Wc(r)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(r)):(this._emitChars(""),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagName(r){this.handleSpecialEndTag(r)&&(this._emitChars(""),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataDoubleEscapeStart(r){if(this.preprocessor.startsWith(Xo.SCRIPT,!1)&&LL(this.preprocessor.peek(Xo.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Or);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedLessThanSign(r){r===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(r))}_stateScriptDataDoubleEscapeEnd(r){if(this.preprocessor.startsWith(Xo.SCRIPT,!1)&&LL(this.preprocessor.peek(Xo.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!0)}replace(r,n){const o=this._indexOf(r);this.items[o]=n,o===this.stackTop&&(this.current=n)}insertAfter(r,n,o){const a=this._indexOf(r)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,o),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(r){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(r,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==$e.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(r){for(;this.stackTop>=r;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;o--)if(r.has(this.tagIDs[o])&&this.treeAdapter.getNamespaceURI(this.items[o])===n)return o;return-1}clearBackTo(r,n){const o=this._indexOfTagNames(r,n);this.shortenToLength(o+1)}clearBackToTableContext(){this.clearBackTo(hve,$e.HTML)}clearBackToTableBodyContext(){this.clearBackTo(pve,$e.HTML)}clearBackToTableRowContext(){this.clearBackTo(dve,$e.HTML)}remove(r){const n=this._indexOf(r);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===H.BODY?this.items[1]:null}contains(r){return this._indexOf(r)>-1}getCommonAncestor(r){const n=this._indexOf(r)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===H.HTML}hasInDynamicScope(r,n){for(let o=this.stackTop;o>=0;o--){const a=this.tagIDs[o];switch(this.treeAdapter.getNamespaceURI(this.items[o])){case $e.HTML:{if(a===r)return!0;if(n.has(a))return!1;break}case $e.SVG:{if(FL.has(a))return!1;break}case $e.MATHML:{if(jL.has(a))return!1;break}}}return!0}hasInScope(r){return this.hasInDynamicScope(r,f3)}hasInListItemScope(r){return this.hasInDynamicScope(r,cve)}hasInButtonScope(r){return this.hasInDynamicScope(r,uve)}hasNumberedHeaderInScope(){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case $e.HTML:{if(U_.has(n))return!0;if(f3.has(n))return!1;break}case $e.SVG:{if(FL.has(n))return!1;break}case $e.MATHML:{if(jL.has(n))return!1;break}}}return!0}hasInTableScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$e.HTML)switch(this.tagIDs[n]){case r:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===$e.HTML)switch(this.tagIDs[r]){case H.TBODY:case H.THEAD:case H.TFOOT:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasInSelectScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$e.HTML)switch(this.tagIDs[n]){case r:return!0;case H.OPTION:case H.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;zL.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;BL.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(r){for(;this.currentTagId!==r&&BL.has(this.currentTagId);)this.pop()}}const V_=3;var Vl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Vl||(Vl={}));const HL={type:Vl.Marker};class gve{constructor(r){this.treeAdapter=r,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(r,n){const o=[],a=n.length,i=this.treeAdapter.getTagName(r),l=this.treeAdapter.getNamespaceURI(r);for(let s=0;s[l.name,l.value]));let i=0;for(let l=0;la.get(c.name)===c.value)&&(i+=1,i>=V_&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(HL)}pushElement(r,n){this._ensureNoahArkCondition(r),this.entries.unshift({type:Vl.Element,element:r,token:n})}insertElementAfterBookmark(r,n){const o=this.entries.indexOf(this.bookmark);this.entries.splice(o,0,{type:Vl.Element,element:r,token:n})}removeEntry(r){const n=this.entries.indexOf(r);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const r=this.entries.indexOf(HL);r>=0?this.entries.splice(0,r+1):this.entries.length=0}getElementEntryInScopeWithTagName(r){const n=this.entries.find(o=>o.type===Vl.Marker||this.treeAdapter.getTagName(o.element)===r);return n&&n.type===Vl.Element?n:null}getElementEntry(r){return this.entries.find(n=>n.type===Vl.Element&&n.element===r)}}const Gc={createDocument(){return{nodeName:"#document",mode:Ja.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,r,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:r,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,r){e.childNodes.push(r),r.parentNode=e},insertBefore(e,r,n){const o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,r),r.parentNode=e},setTemplateContent(e,r){e.content=r},getTemplateContent(e){return e.content},setDocumentType(e,r,n,o){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=r,a.publicId=n,a.systemId=o;else{const i={nodeName:"#documentType",name:r,publicId:n,systemId:o,parentNode:null};Gc.appendChild(e,i)}},setDocumentMode(e,r){e.mode=r},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const r=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(r,1),e.parentNode=null}},insertText(e,r){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Gc.isTextNode(n)){n.value+=r;return}}Gc.appendChild(e,Gc.createTextNode(r))},insertTextBefore(e,r,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&Gc.isTextNode(o)?o.value+=r:Gc.insertBefore(e,Gc.createTextNode(r),n)},adoptAttributes(e,r){const n=new Set(e.attrs.map(o=>o.name));for(let o=0;oe.startsWith(n))}function kve(e){return e.name===qL&&e.publicId===null&&(e.systemId===null||e.systemId===yve)}function _ve(e){if(e.name!==qL)return Ja.QUIRKS;const{systemId:r}=e;if(r&&r.toLowerCase()===bve)return Ja.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),xve.has(n))return Ja.QUIRKS;let o=r===null?vve:UL;if(YL(n,o))return Ja.QUIRKS;if(o=r===null?VL:wve,YL(n,o))return Ja.LIMITED_QUIRKS}return Ja.NO_QUIRKS}const WL={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Eve="definitionurl",Sve="definitionURL",Cve=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Tve=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:$e.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:$e.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:$e.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:$e.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:$e.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:$e.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:$e.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:$e.XML}],["xml:space",{prefix:"xml",name:"space",namespace:$e.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:$e.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:$e.XMLNS}]]),Rve=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Ave=new Set([H.B,H.BIG,H.BLOCKQUOTE,H.BODY,H.BR,H.CENTER,H.CODE,H.DD,H.DIV,H.DL,H.DT,H.EM,H.EMBED,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HR,H.I,H.IMG,H.LI,H.LISTING,H.MENU,H.META,H.NOBR,H.OL,H.P,H.PRE,H.RUBY,H.S,H.SMALL,H.SPAN,H.STRONG,H.STRIKE,H.SUB,H.SUP,H.TABLE,H.TT,H.U,H.UL,H.VAR]);function Nve(e){const r=e.tagID;return r===H.FONT&&e.attrs.some(({name:o})=>o===Ed.COLOR||o===Ed.SIZE||o===Ed.FACE)||Ave.has(r)}function GL(e){for(let r=0;r0&&this._setContextModes(r,n)}onItemPop(r,n){var o,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(r,this.currentToken),(a=(o=this.treeAdapter).onItemPop)===null||a===void 0||a.call(o,r,this.openElements.current),n){let i,l;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,l=this.fragmentContextID):{current:i,currentTagId:l}=this.openElements,this._setContextModes(i,l)}}_setContextModes(r,n){const o=r===this.document||this.treeAdapter.getNamespaceURI(r)===$e.HTML;this.currentNotInHTML=!o,this.tokenizer.inForeignNode=!o&&!this._isIntegrationPoint(n,r)}_switchToTextParsing(r,n){this._insertElement(r,$e.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=le.TEXT}switchToPlaintextParsing(){this.insertionMode=le.TEXT,this.originalInsertionMode=le.IN_BODY,this.tokenizer.state=on.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let r=this.fragmentContext;for(;r;){if(this.treeAdapter.getTagName(r)===me.FORM){this.formElement=r;break}r=this.treeAdapter.getParentNode(r)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==$e.HTML))switch(this.fragmentContextID){case H.TITLE:case H.TEXTAREA:{this.tokenizer.state=on.RCDATA;break}case H.STYLE:case H.XMP:case H.IFRAME:case H.NOEMBED:case H.NOFRAMES:case H.NOSCRIPT:{this.tokenizer.state=on.RAWTEXT;break}case H.SCRIPT:{this.tokenizer.state=on.SCRIPT_DATA;break}case H.PLAINTEXT:{this.tokenizer.state=on.PLAINTEXT;break}}}_setDocumentType(r){const n=r.name||"",o=r.publicId||"",a=r.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,o,a),r.location){const l=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));l&&this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}_attachElementToTree(r,n){if(this.options.sourceCodeLocationInfo){const o=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(r,o)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(r);else{const o=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(o,r)}}_appendElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location)}_insertElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location),this.openElements.push(o,r.tagID)}_insertFakeElement(r,n){const o=this.treeAdapter.createElement(r,$e.HTML,[]);this._attachElementToTree(o,null),this.openElements.push(o,n)}_insertTemplate(r){const n=this.treeAdapter.createElement(r.tagName,$e.HTML,r.attrs),o=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,o),this._attachElementToTree(n,r.location),this.openElements.push(n,r.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,null)}_insertFakeRootElement(){const r=this.treeAdapter.createElement(me.HTML,$e.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null),this.treeAdapter.appendChild(this.openElements.current,r),this.openElements.push(r,H.HTML)}_appendCommentNode(r,n){const o=this.treeAdapter.createCommentNode(r.data);this.treeAdapter.appendChild(n,o),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,r.location)}_insertCharacters(r){let n,o;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:o}=this._findFosterParentingLocation(),o?this.treeAdapter.insertTextBefore(n,r.chars,o):this.treeAdapter.insertText(n,r.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,r.chars)),!r.location)return;const a=this.treeAdapter.getChildNodes(n),i=o?a.lastIndexOf(o):a.length,l=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:c,endCol:u,endOffset:d}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}_adoptNodes(r,n){for(let o=this.treeAdapter.getFirstChild(r);o;o=this.treeAdapter.getFirstChild(r))this.treeAdapter.detachNode(o),this.treeAdapter.appendChild(n,o)}_setEndLocation(r,n){if(this.treeAdapter.getNodeSourceCodeLocation(r)&&n.location){const o=n.location,a=this.treeAdapter.getTagName(r),i=n.type===Ht.END_TAG&&a===n.tagName?{endTag:{...o},endLine:o.endLine,endCol:o.endCol,endOffset:o.endOffset}:{endLine:o.startLine,endCol:o.startCol,endOffset:o.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(r,i)}}shouldProcessStartTagTokenInForeignContent(r){if(!this.currentNotInHTML)return!1;let n,o;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,r.tagID===H.SVG&&this.treeAdapter.getTagName(n)===me.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===$e.MATHML?!1:this.tokenizer.inForeignNode||(r.tagID===H.MGLYPH||r.tagID===H.MALIGNMARK)&&!this._isIntegrationPoint(o,n,$e.HTML)}_processToken(r){switch(r.type){case Ht.CHARACTER:{this.onCharacter(r);break}case Ht.NULL_CHARACTER:{this.onNullCharacter(r);break}case Ht.COMMENT:{this.onComment(r);break}case Ht.DOCTYPE:{this.onDoctype(r);break}case Ht.START_TAG:{this._processStartTag(r);break}case Ht.END_TAG:{this.onEndTag(r);break}case Ht.EOF:{this.onEof(r);break}case Ht.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(r);break}}}_isIntegrationPoint(r,n,o){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Mve(r,a,i,o)}_reconstructActiveFormattingElements(){const r=this.activeFormattingElements.entries.length;if(r){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Vl.Marker||this.openElements.contains(a.element)),o=n<0?r-1:n-1;for(let a=o;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=le.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(H.P),this.openElements.popUntilTagNamePopped(H.P)}_resetInsertionMode(){for(let r=this.openElements.stackTop;r>=0;r--)switch(r===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[r]){case H.TR:{this.insertionMode=le.IN_ROW;return}case H.TBODY:case H.THEAD:case H.TFOOT:{this.insertionMode=le.IN_TABLE_BODY;return}case H.CAPTION:{this.insertionMode=le.IN_CAPTION;return}case H.COLGROUP:{this.insertionMode=le.IN_COLUMN_GROUP;return}case H.TABLE:{this.insertionMode=le.IN_TABLE;return}case H.BODY:{this.insertionMode=le.IN_BODY;return}case H.FRAMESET:{this.insertionMode=le.IN_FRAMESET;return}case H.SELECT:{this._resetInsertionModeForSelect(r);return}case H.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case H.HTML:{this.insertionMode=this.headElement?le.AFTER_HEAD:le.BEFORE_HEAD;return}case H.TD:case H.TH:{if(r>0){this.insertionMode=le.IN_CELL;return}break}case H.HEAD:{if(r>0){this.insertionMode=le.IN_HEAD;return}break}}this.insertionMode=le.IN_BODY}_resetInsertionModeForSelect(r){if(r>0)for(let n=r-1;n>0;n--){const o=this.openElements.tagIDs[n];if(o===H.TEMPLATE)break;if(o===H.TABLE){this.insertionMode=le.IN_SELECT_IN_TABLE;return}}this.insertionMode=le.IN_SELECT}_isElementCausesFosterParenting(r){return KL.has(r)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let r=this.openElements.stackTop;r>=0;r--){const n=this.openElements.items[r];switch(this.openElements.tagIDs[r]){case H.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===$e.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case H.TABLE:{const o=this.treeAdapter.getParentNode(n);return o?{parent:o,beforeElement:n}:{parent:this.openElements.items[r-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(r){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,r,n.beforeElement):this.treeAdapter.appendChild(n.parent,r)}_isSpecialElement(r,n){const o=this.treeAdapter.getNamespaceURI(r);return ove[o].has(n)}onCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){fxe(this,r);return}switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{P1(this,r);break}case le.IN_BODY:case le.IN_CAPTION:case le.IN_CELL:case le.IN_TEMPLATE:{ez(this,r);break}case le.TEXT:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:{this._insertCharacters(r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{K_(this,r);break}case le.IN_TABLE_TEXT:{sz(this,r);break}case le.IN_COLUMN_GROUP:{y3(this,r);break}case le.AFTER_BODY:{x3(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onNullCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){hxe(this,r);return}switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{P1(this,r);break}case le.TEXT:{this._insertCharacters(r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{K_(this,r);break}case le.IN_COLUMN_GROUP:{y3(this,r);break}case le.AFTER_BODY:{x3(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onComment(r){if(this.skipNextNewLine=!1,this.currentNotInHTML){G_(this,r);return}switch(this.insertionMode){case le.INITIAL:case le.BEFORE_HTML:case le.BEFORE_HEAD:case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:case le.IN_BODY:case le.IN_TABLE:case le.IN_CAPTION:case le.IN_COLUMN_GROUP:case le.IN_TABLE_BODY:case le.IN_ROW:case le.IN_CELL:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:case le.IN_TEMPLATE:case le.IN_FRAMESET:case le.AFTER_FRAMESET:{G_(this,r);break}case le.IN_TABLE_TEXT:{O1(this,r);break}case le.AFTER_BODY:{Vve(this,r);break}case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{Yve(this,r);break}}}onDoctype(r){switch(this.skipNextNewLine=!1,this.insertionMode){case le.INITIAL:{Wve(this,r);break}case le.BEFORE_HEAD:case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:{this._err(r,Ee.misplacedDoctype);break}case le.IN_TABLE_TEXT:{O1(this,r);break}}}onStartTag(r){this.skipNextNewLine=!1,this.currentToken=r,this._processStartTag(r),r.selfClosing&&!r.ackSelfClosing&&this._err(r,Ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(r){this.shouldProcessStartTagTokenInForeignContent(r)?mxe(this,r):this._startTagOutsideForeignContent(r)}_startTagOutsideForeignContent(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{Gve(this,r);break}case le.BEFORE_HEAD:{Kve(this,r);break}case le.IN_HEAD:{Hi(this,r);break}case le.IN_HEAD_NO_SCRIPT:{Jve(this,r);break}case le.AFTER_HEAD:{t3e(this,r);break}case le.IN_BODY:{So(this,r);break}case le.IN_TABLE:{Fh(this,r);break}case le.IN_TABLE_TEXT:{O1(this,r);break}case le.IN_CAPTION:{Z3e(this,r);break}case le.IN_COLUMN_GROUP:{Z_(this,r);break}case le.IN_TABLE_BODY:{b3(this,r);break}case le.IN_ROW:{v3(this,r);break}case le.IN_CELL:{exe(this,r);break}case le.IN_SELECT:{dz(this,r);break}case le.IN_SELECT_IN_TABLE:{rxe(this,r);break}case le.IN_TEMPLATE:{oxe(this,r);break}case le.AFTER_BODY:{ixe(this,r);break}case le.IN_FRAMESET:{lxe(this,r);break}case le.AFTER_FRAMESET:{cxe(this,r);break}case le.AFTER_AFTER_BODY:{dxe(this,r);break}case le.AFTER_AFTER_FRAMESET:{pxe(this,r);break}}}onEndTag(r){this.skipNextNewLine=!1,this.currentToken=r,this.currentNotInHTML?gxe(this,r):this._endTagOutsideForeignContent(r)}_endTagOutsideForeignContent(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{Xve(this,r);break}case le.BEFORE_HEAD:{Zve(this,r);break}case le.IN_HEAD:{Qve(this,r);break}case le.IN_HEAD_NO_SCRIPT:{e3e(this,r);break}case le.AFTER_HEAD:{r3e(this,r);break}case le.IN_BODY:{g3(this,r);break}case le.TEXT:{F3e(this,r);break}case le.IN_TABLE:{$1(this,r);break}case le.IN_TABLE_TEXT:{O1(this,r);break}case le.IN_CAPTION:{Q3e(this,r);break}case le.IN_COLUMN_GROUP:{J3e(this,r);break}case le.IN_TABLE_BODY:{Q_(this,r);break}case le.IN_ROW:{uz(this,r);break}case le.IN_CELL:{txe(this,r);break}case le.IN_SELECT:{pz(this,r);break}case le.IN_SELECT_IN_TABLE:{nxe(this,r);break}case le.IN_TEMPLATE:{axe(this,r);break}case le.AFTER_BODY:{fz(this,r);break}case le.IN_FRAMESET:{sxe(this,r);break}case le.AFTER_FRAMESET:{uxe(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onEof(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{P1(this,r);break}case le.IN_BODY:case le.IN_TABLE:case le.IN_CAPTION:case le.IN_COLUMN_GROUP:case le.IN_TABLE_BODY:case le.IN_ROW:case le.IN_CELL:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:{iz(this,r);break}case le.TEXT:{H3e(this,r);break}case le.IN_TABLE_TEXT:{O1(this,r);break}case le.IN_TEMPLATE:{hz(this,r);break}case le.AFTER_BODY:case le.IN_FRAMESET:case le.AFTER_FRAMESET:case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{X_(this,r);break}}}onWhitespaceCharacter(r){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,r.chars.charCodeAt(0)===ne.LINE_FEED)){if(r.chars.length===1)return;r.chars=r.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(r);return}switch(this.insertionMode){case le.IN_HEAD:case le.IN_HEAD_NO_SCRIPT:case le.AFTER_HEAD:case le.TEXT:case le.IN_COLUMN_GROUP:case le.IN_SELECT:case le.IN_SELECT_IN_TABLE:case le.IN_FRAMESET:case le.AFTER_FRAMESET:{this._insertCharacters(r);break}case le.IN_BODY:case le.IN_CAPTION:case le.IN_CELL:case le.IN_TEMPLATE:case le.AFTER_BODY:case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{JL(this,r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{K_(this,r);break}case le.IN_TABLE_TEXT:{lz(this,r);break}}}}function Bve(e,r){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(r.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(r.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):az(e,r),n}function jve(e,r){let n=null,o=e.openElements.stackTop;for(;o>=0;o--){const a=e.openElements.items[o];if(a===r.element)break;e._isSpecialElement(a,e.openElements.tagIDs[o])&&(n=a)}return n||(e.openElements.shortenToLength(o<0?0:o),e.activeFormattingElements.removeEntry(r)),n}function Fve(e,r,n){let o=r,a=e.openElements.getCommonAncestor(r);for(let i=0,l=a;l!==n;i++,l=a){a=e.openElements.getCommonAncestor(l);const s=e.activeFormattingElements.getElementEntry(l),c=s&&i>=Lve;!s||c?(c&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(l)):(l=Hve(e,s),o===r&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(l,o),o=l)}return o}function Hve(e,r){const n=e.treeAdapter.getNamespaceURI(r.element),o=e.treeAdapter.createElement(r.token.tagName,n,r.token.attrs);return e.openElements.replace(r.element,o),r.element=o,o}function qve(e,r,n){const o=e.treeAdapter.getTagName(r),a=jh(o);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(r);a===H.TEMPLATE&&i===$e.HTML&&(r=e.treeAdapter.getTemplateContent(r)),e.treeAdapter.appendChild(r,n)}}function Uve(e,r,n){const o=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,o,a.attrs);e._adoptNodes(r,i),e.treeAdapter.appendChild(r,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(r,i,a.tagID)}function W_(e,r){for(let n=0;n=n;o--)e._setEndLocation(e.openElements.items[o],r);if(!e.fragmentContext&&e.openElements.stackTop>=0){const o=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(o);if(a&&!a.endTag&&(e._setEndLocation(o,r),e.openElements.stackTop>=1)){const i=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(i);l&&!l.endTag&&e._setEndLocation(i,r)}}}}function Wve(e,r){e._setDocumentType(r);const n=r.forceQuirks?Ja.QUIRKS:_ve(r);kve(r)||e._err(r,Ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=le.BEFORE_HTML}function T1(e,r){e._err(r,Ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ja.QUIRKS),e.insertionMode=le.BEFORE_HTML,e._processToken(r)}function Gve(e,r){r.tagID===H.HTML?(e._insertElement(r,$e.HTML),e.insertionMode=le.BEFORE_HEAD):R1(e,r)}function Xve(e,r){const n=r.tagID;(n===H.HTML||n===H.HEAD||n===H.BODY||n===H.BR)&&R1(e,r)}function R1(e,r){e._insertFakeRootElement(),e.insertionMode=le.BEFORE_HEAD,e._processToken(r)}function Kve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.HEAD:{e._insertElement(r,$e.HTML),e.headElement=e.openElements.current,e.insertionMode=le.IN_HEAD;break}default:A1(e,r)}}function Zve(e,r){const n=r.tagID;n===H.HEAD||n===H.BODY||n===H.HTML||n===H.BR?A1(e,r):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function A1(e,r){e._insertFakeElement(me.HEAD,H.HEAD),e.headElement=e.openElements.current,e.insertionMode=le.IN_HEAD,e._processToken(r)}function Hi(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:{e._appendElement(r,$e.HTML),r.ackSelfClosing=!0;break}case H.TITLE:{e._switchToTextParsing(r,on.RCDATA);break}case H.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(r,on.RAWTEXT):(e._insertElement(r,$e.HTML),e.insertionMode=le.IN_HEAD_NO_SCRIPT);break}case H.NOFRAMES:case H.STYLE:{e._switchToTextParsing(r,on.RAWTEXT);break}case H.SCRIPT:{e._switchToTextParsing(r,on.SCRIPT_DATA);break}case H.TEMPLATE:{e._insertTemplate(r),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=le.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(le.IN_TEMPLATE);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:N1(e,r)}}function Qve(e,r){switch(r.tagID){case H.HEAD:{e.openElements.pop(),e.insertionMode=le.AFTER_HEAD;break}case H.BODY:case H.BR:case H.HTML:{N1(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function Sd(e,r){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==H.TEMPLATE&&e._err(r,Ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function N1(e,r){e.openElements.pop(),e.insertionMode=le.AFTER_HEAD,e._processToken(r)}function Jve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASEFONT:case H.BGSOUND:case H.HEAD:case H.LINK:case H.META:case H.NOFRAMES:case H.STYLE:{Hi(e,r);break}case H.NOSCRIPT:{e._err(r,Ee.nestedNoscriptInHead);break}default:D1(e,r)}}function e3e(e,r){switch(r.tagID){case H.NOSCRIPT:{e.openElements.pop(),e.insertionMode=le.IN_HEAD;break}case H.BR:{D1(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function D1(e,r){const n=r.type===Ht.EOF?Ee.openElementsLeftAfterEof:Ee.disallowedContentInNoscriptInHead;e._err(r,n),e.openElements.pop(),e.insertionMode=le.IN_HEAD,e._processToken(r)}function t3e(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BODY:{e._insertElement(r,$e.HTML),e.framesetOk=!1,e.insertionMode=le.IN_BODY;break}case H.FRAMESET:{e._insertElement(r,$e.HTML),e.insertionMode=le.IN_FRAMESET;break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{e._err(r,Ee.abandonedHeadElementChild),e.openElements.push(e.headElement,H.HEAD),Hi(e,r),e.openElements.remove(e.headElement);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:P1(e,r)}}function r3e(e,r){switch(r.tagID){case H.BODY:case H.HTML:case H.BR:{P1(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function P1(e,r){e._insertFakeElement(me.BODY,H.BODY),e.insertionMode=le.IN_BODY,m3(e,r)}function m3(e,r){switch(r.type){case Ht.CHARACTER:{ez(e,r);break}case Ht.WHITESPACE_CHARACTER:{JL(e,r);break}case Ht.COMMENT:{G_(e,r);break}case Ht.START_TAG:{So(e,r);break}case Ht.END_TAG:{g3(e,r);break}case Ht.EOF:{iz(e,r);break}}}function JL(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r)}function ez(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r),e.framesetOk=!1}function n3e(e,r){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],r.attrs)}function o3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,r.attrs))}function a3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_FRAMESET)}function i3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML)}function l3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),U_.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(r,$e.HTML)}function s3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function c3e(e,r){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML),n||(e.formElement=e.openElements.current))}function u3e(e,r){e.framesetOk=!1;const n=r.tagID;for(let o=e.openElements.stackTop;o>=0;o--){const a=e.openElements.tagIDs[o];if(n===H.LI&&a===H.LI||(n===H.DD||n===H.DT)&&(a===H.DD||a===H.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==H.ADDRESS&&a!==H.DIV&&a!==H.P&&e._isSpecialElement(e.openElements.items[o],a))break}e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML)}function d3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML),e.tokenizer.state=on.PLAINTEXT}function p3e(e,r){e.openElements.hasInScope(H.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.framesetOk=!1}function h3e(e,r){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(me.A);n&&(W_(e,r),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function f3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function m3e(e,r){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(H.NOBR)&&(W_(e,r),e._reconstructActiveFormattingElements()),e._insertElement(r,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function g3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function y3e(e,r){e.treeAdapter.getDocumentMode(e.document)!==Ja.QUIRKS&&e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML),e.framesetOk=!1,e.insertionMode=le.IN_TABLE}function tz(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,$e.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function rz(e){const r=DL(e,Ed.TYPE);return r!=null&&r.toLowerCase()===Ove}function b3e(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,$e.HTML),rz(r)||(e.framesetOk=!1),r.ackSelfClosing=!0}function v3e(e,r){e._appendElement(r,$e.HTML),r.ackSelfClosing=!0}function x3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._appendElement(r,$e.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function w3e(e,r){r.tagName=me.IMG,r.tagID=H.IMG,tz(e,r)}function k3e(e,r){e._insertElement(r,$e.HTML),e.skipNextNewLine=!0,e.tokenizer.state=on.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=le.TEXT}function _3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function E3e(e,r){e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function nz(e,r){e._switchToTextParsing(r,on.RAWTEXT)}function S3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===le.IN_TABLE||e.insertionMode===le.IN_CAPTION||e.insertionMode===le.IN_TABLE_BODY||e.insertionMode===le.IN_ROW||e.insertionMode===le.IN_CELL?le.IN_SELECT_IN_TABLE:le.IN_SELECT}function C3e(e,r){e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML)}function T3e(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(r,$e.HTML)}function R3e(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(H.RTC),e._insertElement(r,$e.HTML)}function A3e(e,r){e._reconstructActiveFormattingElements(),GL(r),Y_(r),r.selfClosing?e._appendElement(r,$e.MATHML):e._insertElement(r,$e.MATHML),r.ackSelfClosing=!0}function N3e(e,r){e._reconstructActiveFormattingElements(),XL(r),Y_(r),r.selfClosing?e._appendElement(r,$e.SVG):e._insertElement(r,$e.SVG),r.ackSelfClosing=!0}function oz(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML)}function So(e,r){switch(r.tagID){case H.I:case H.S:case H.B:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.SMALL:case H.STRIKE:case H.STRONG:{f3e(e,r);break}case H.A:{h3e(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{l3e(e,r);break}case H.P:case H.DL:case H.OL:case H.UL:case H.DIV:case H.DIR:case H.NAV:case H.MAIN:case H.MENU:case H.ASIDE:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.DETAILS:case H.ADDRESS:case H.ARTICLE:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{i3e(e,r);break}case H.LI:case H.DD:case H.DT:{u3e(e,r);break}case H.BR:case H.IMG:case H.WBR:case H.AREA:case H.EMBED:case H.KEYGEN:{tz(e,r);break}case H.HR:{x3e(e,r);break}case H.RB:case H.RTC:{T3e(e,r);break}case H.RT:case H.RP:{R3e(e,r);break}case H.PRE:case H.LISTING:{s3e(e,r);break}case H.XMP:{_3e(e,r);break}case H.SVG:{N3e(e,r);break}case H.HTML:{n3e(e,r);break}case H.BASE:case H.LINK:case H.META:case H.STYLE:case H.TITLE:case H.SCRIPT:case H.BGSOUND:case H.BASEFONT:case H.TEMPLATE:{Hi(e,r);break}case H.BODY:{o3e(e,r);break}case H.FORM:{c3e(e,r);break}case H.NOBR:{m3e(e,r);break}case H.MATH:{A3e(e,r);break}case H.TABLE:{y3e(e,r);break}case H.INPUT:{b3e(e,r);break}case H.PARAM:case H.TRACK:case H.SOURCE:{v3e(e,r);break}case H.IMAGE:{w3e(e,r);break}case H.BUTTON:{p3e(e,r);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{g3e(e,r);break}case H.IFRAME:{E3e(e,r);break}case H.SELECT:{S3e(e,r);break}case H.OPTION:case H.OPTGROUP:{C3e(e,r);break}case H.NOEMBED:case H.NOFRAMES:{nz(e,r);break}case H.FRAMESET:{a3e(e,r);break}case H.TEXTAREA:{k3e(e,r);break}case H.NOSCRIPT:{e.options.scriptingEnabled?nz(e,r):oz(e,r);break}case H.PLAINTEXT:{d3e(e,r);break}case H.COL:case H.TH:case H.TD:case H.TR:case H.HEAD:case H.FRAME:case H.TBODY:case H.TFOOT:case H.THEAD:case H.CAPTION:case H.COLGROUP:break;default:oz(e,r)}}function D3e(e,r){if(e.openElements.hasInScope(H.BODY)&&(e.insertionMode=le.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,r)}}function P3e(e,r){e.openElements.hasInScope(H.BODY)&&(e.insertionMode=le.AFTER_BODY,fz(e,r))}function $3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function M3e(e){const r=e.openElements.tmplCount>0,{formElement:n}=e;r||(e.formElement=null),(n||r)&&e.openElements.hasInScope(H.FORM)&&(e.openElements.generateImpliedEndTags(),r?e.openElements.popUntilTagNamePopped(H.FORM):n&&e.openElements.remove(n))}function O3e(e){e.openElements.hasInButtonScope(H.P)||e._insertFakeElement(me.P,H.P),e._closePElement()}function I3e(e){e.openElements.hasInListItemScope(H.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(H.LI),e.openElements.popUntilTagNamePopped(H.LI))}function L3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function z3e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function B3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function j3e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(me.BR,H.BR),e.openElements.pop(),e.framesetOk=!1}function az(e,r){const n=r.tagName,o=r.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],l=e.openElements.tagIDs[a];if(o===l&&(o!==H.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,l))break}}function g3(e,r){switch(r.tagID){case H.A:case H.B:case H.I:case H.S:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.NOBR:case H.SMALL:case H.STRIKE:case H.STRONG:{W_(e,r);break}case H.P:{O3e(e);break}case H.DL:case H.UL:case H.OL:case H.DIR:case H.DIV:case H.NAV:case H.PRE:case H.MAIN:case H.MENU:case H.ASIDE:case H.BUTTON:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.ADDRESS:case H.ARTICLE:case H.DETAILS:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.LISTING:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{$3e(e,r);break}case H.LI:{I3e(e);break}case H.DD:case H.DT:{L3e(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{z3e(e);break}case H.BR:{j3e(e);break}case H.BODY:{D3e(e,r);break}case H.HTML:{P3e(e,r);break}case H.FORM:{M3e(e);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{B3e(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:az(e,r)}}function iz(e,r){e.tmplInsertionModeStack.length>0?hz(e,r):X_(e,r)}function F3e(e,r){var n;r.tagID===H.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function H3e(e,r){e._err(r,Ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(r)}function K_(e,r){if(KL.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=le.IN_TABLE_TEXT,r.type){case Ht.CHARACTER:{sz(e,r);break}case Ht.WHITESPACE_CHARACTER:{lz(e,r);break}}else M1(e,r)}function q3e(e,r){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_CAPTION}function U3e(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_COLUMN_GROUP}function V3e(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.COLGROUP,H.COLGROUP),e.insertionMode=le.IN_COLUMN_GROUP,Z_(e,r)}function Y3e(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_TABLE_BODY}function W3e(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.TBODY,H.TBODY),e.insertionMode=le.IN_TABLE_BODY,b3(e,r)}function G3e(e,r){e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode(),e._processStartTag(r))}function X3e(e,r){rz(r)?e._appendElement(r,$e.HTML):M1(e,r),r.ackSelfClosing=!0}function K3e(e,r){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(r,$e.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Fh(e,r){switch(r.tagID){case H.TD:case H.TH:case H.TR:{W3e(e,r);break}case H.STYLE:case H.SCRIPT:case H.TEMPLATE:{Hi(e,r);break}case H.COL:{V3e(e,r);break}case H.FORM:{K3e(e,r);break}case H.TABLE:{G3e(e,r);break}case H.TBODY:case H.TFOOT:case H.THEAD:{Y3e(e,r);break}case H.INPUT:{X3e(e,r);break}case H.CAPTION:{q3e(e,r);break}case H.COLGROUP:{U3e(e,r);break}default:M1(e,r)}}function $1(e,r){switch(r.tagID){case H.TABLE:{e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TBODY:case H.TD:case H.TFOOT:case H.TH:case H.THEAD:case H.TR:break;default:M1(e,r)}}function M1(e,r){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,m3(e,r),e.fosterParentingEnabled=n}function lz(e,r){e.pendingCharacterTokens.push(r)}function sz(e,r){e.pendingCharacterTokens.push(r),e.hasNonWhitespacePendingCharacterToken=!0}function O1(e,r){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===H.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===H.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop();break}case H.OPTION:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop();break}case H.SELECT:{e.openElements.hasInSelectScope(H.SELECT)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}}}function rxe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e._processStartTag(r)):dz(e,r)}function nxe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e.onEndTag(r)):pz(e,r)}function oxe(e,r){switch(r.tagID){case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{Hi(e,r);break}case H.CAPTION:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:{e.tmplInsertionModeStack[0]=le.IN_TABLE,e.insertionMode=le.IN_TABLE,Fh(e,r);break}case H.COL:{e.tmplInsertionModeStack[0]=le.IN_COLUMN_GROUP,e.insertionMode=le.IN_COLUMN_GROUP,Z_(e,r);break}case H.TR:{e.tmplInsertionModeStack[0]=le.IN_TABLE_BODY,e.insertionMode=le.IN_TABLE_BODY,b3(e,r);break}case H.TD:case H.TH:{e.tmplInsertionModeStack[0]=le.IN_ROW,e.insertionMode=le.IN_ROW,v3(e,r);break}default:e.tmplInsertionModeStack[0]=le.IN_BODY,e.insertionMode=le.IN_BODY,So(e,r)}}function axe(e,r){r.tagID===H.TEMPLATE&&Sd(e,r)}function hz(e,r){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(r)):X_(e,r)}function ixe(e,r){r.tagID===H.HTML?So(e,r):x3(e,r)}function fz(e,r){var n;if(r.tagID===H.HTML){if(e.fragmentContext||(e.insertionMode=le.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===H.HTML){e._setEndLocation(e.openElements.items[0],r);const o=e.openElements.items[1];o&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(o))===null||n===void 0)&&n.endTag)&&e._setEndLocation(o,r)}}else x3(e,r)}function x3(e,r){e.insertionMode=le.IN_BODY,m3(e,r)}function lxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.FRAMESET:{e._insertElement(r,$e.HTML);break}case H.FRAME:{e._appendElement(r,$e.HTML),r.ackSelfClosing=!0;break}case H.NOFRAMES:{Hi(e,r);break}}}function sxe(e,r){r.tagID===H.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==H.FRAMESET&&(e.insertionMode=le.AFTER_FRAMESET))}function cxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function uxe(e,r){r.tagID===H.HTML&&(e.insertionMode=le.AFTER_AFTER_FRAMESET)}function dxe(e,r){r.tagID===H.HTML?So(e,r):w3(e,r)}function w3(e,r){e.insertionMode=le.IN_BODY,m3(e,r)}function pxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function hxe(e,r){r.chars=Or,e._insertCharacters(r)}function fxe(e,r){e._insertCharacters(r),e.framesetOk=!1}function mz(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$e.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function mxe(e,r){if(Nve(r))mz(e),e._startTagOutsideForeignContent(r);else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===$e.MATHML?GL(r):o===$e.SVG&&(Dve(r),XL(r)),Y_(r),r.selfClosing?e._appendElement(r,o):e._insertElement(r,o),r.ackSelfClosing=!0}}function gxe(e,r){if(r.tagID===H.P||r.tagID===H.BR){mz(e),e._endTagOutsideForeignContent(r);return}for(let n=e.openElements.stackTop;n>0;n--){const o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===$e.HTML){e._endTagOutsideForeignContent(r);break}const a=e.treeAdapter.getTagName(o);if(a.toLowerCase()===r.tagName){r.tagName=a,e.openElements.shortenToLength(n);break}}}me.AREA,me.BASE,me.BASEFONT,me.BGSOUND,me.BR,me.COL,me.EMBED,me.FRAME,me.HR,me.IMG,me.INPUT,me.KEYGEN,me.LINK,me.META,me.PARAM,me.SOURCE,me.TRACK,me.WBR;const k3=gz("end"),zs=gz("start");function gz(e){return r;function r(n){const o=n&&n.position&&n.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function yz(e){const r=zs(e),n=k3(e);if(r&&n)return{start:r,end:n}}const _3=(function(e){if(e==null)return xxe;if(typeof e=="function")return E3(e);if(typeof e=="object")return Array.isArray(e)?yxe(e):bxe(e);if(typeof e=="string")return vxe(e);throw new Error("Expected function, string, or object as test")});function yxe(e){const r=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let g=bz,b,x,w;if((!r||i(c,u,d[d.length-1]||void 0))&&(g=Exe(n(c,d)),g[0]===J_))return g;if("children"in c&&c.children){const k=c;if(k.children&&g[0]!==_xe)for(x=(o?k.children.length:-1)+l,w=d.concat(k);x>-1&&x])/gi,Cxe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),xz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function wz(e,r){const n=Ixe(e),o=j_("type",{handlers:{root:Txe,element:Rxe,text:Axe,comment:_z,doctype:Nxe,raw:Pxe},unknown:$xe}),a={parser:n?new QL(xz):QL.getFragmentParser(void 0,xz),handle(s){o(s,a)},stitches:!1,options:r||{}};o(e,a),Hh(a,zs());const i=n?a.parser.document:a.parser.getFragment(),l=xbe(i,{file:a.options.file});return a.stitches&&e8(l,"comment",function(s,c,u){const d=s;if(d.value.stitch&&u&&c!==void 0){const p=u.children;return p[c]=d.value.stitch,c}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function kz(e,r){let n=-1;if(e)for(;++n4&&(r.parser.tokenizer.state=0);const n={type:Ht.CHARACTER,chars:e.value,location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Nxe(e,r){const n={type:Ht.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Dxe(e,r){r.stitches=!0;const n=Lxe(e);if("children"in e&&"children"in n){const o=wz({type:"root",children:e.children},r.options);n.children=o.children}_z({type:"comment",value:{stitch:n}},r)}function _z(e,r){const n=e.value,o={type:Ht.COMMENT,data:n,location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken)}function Pxe(e,r){if(r.parser.tokenizer.preprocessor.html="",r.parser.tokenizer.preprocessor.pos=-1,r.parser.tokenizer.preprocessor.lastGapPos=-2,r.parser.tokenizer.preprocessor.gapStack=[],r.parser.tokenizer.preprocessor.skipNextNewLine=!1,r.parser.tokenizer.preprocessor.lastChunkWritten=!1,r.parser.tokenizer.preprocessor.endOfChunkHit=!1,r.parser.tokenizer.preprocessor.isEol=!1,Ez(r,zs(e)),r.parser.tokenizer.write(r.options.tagfilter?e.value.replace(Sxe,"<$1$2"):e.value,!1),r.parser.tokenizer._runParsingLoop(),r.parser.tokenizer.state===72||r.parser.tokenizer.state===78){r.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=r.parser.tokenizer._consume();r.parser.tokenizer._callState(n)}}function $xe(e,r){const n=e;if(r.options.passThrough&&r.options.passThrough.includes(n.type))Dxe(n,r);else{let o="";throw Cxe.has(n.type)&&(o=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+o)}}function Hh(e,r){Ez(e,r);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=on.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ez(e,r){if(r&&r.offset!==void 0){const n={startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-r.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=r.offset,e.parser.tokenizer.preprocessor.line=r.line,e.parser.tokenizer.currentLocation=n}}function Mxe(e,r){const n=e.tagName.toLowerCase();if(r.parser.tokenizer.state===on.PLAINTEXT)return;Hh(r,zs(e));const o=r.parser.openElements.current;let a="namespaceURI"in o?o.namespaceURI:kd.html;a===kd.html&&n==="svg"&&(a=kd.svg);const i=Obe({...e,children:[]},{space:a===kd.svg?"svg":"html"}),l={type:Ht.START_TAG,tagName:n,tagID:jh(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:I1(e)};r.parser.currentToken=l,r.parser._processToken(r.parser.currentToken),r.parser.tokenizer.lastStartTagName=n}function Oxe(e,r){const n=e.tagName.toLowerCase();if(!r.parser.tokenizer.inForeignNode&&TL.includes(n)||r.parser.tokenizer.state===on.PLAINTEXT)return;Hh(r,k3(e));const o={type:Ht.END_TAG,tagName:n,tagID:jh(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:I1(e)};r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken),n===r.parser.tokenizer.lastStartTagName&&(r.parser.tokenizer.state===on.RCDATA||r.parser.tokenizer.state===on.RAWTEXT||r.parser.tokenizer.state===on.SCRIPT_DATA)&&(r.parser.tokenizer.state=on.DATA)}function Ixe(e){const r=e.type==="root"?e.children[0]:e;return!!(r&&(r.type==="doctype"||r.type==="element"&&r.tagName.toLowerCase()==="html"))}function I1(e){const r=zs(e)||{line:void 0,column:void 0,offset:void 0},n=k3(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Lxe(e){return"children"in e?xd({...e,children:[]}):xd(e)}function zxe(e){return function(r,n){return wz(r,{...e,file:n})}}const Cd=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Sz={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cd,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cd],h2:[["className","sr-only"]],img:[...Cd,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cd,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cd],table:[...Cd],ul:[...Cd,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Xc={}.hasOwnProperty;function Bxe(e,r){let n={type:"root",children:[]};const o={schema:r?{...Sz,...r}:Sz,stack:[]},a=Cz(o,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function Cz(e,r){if(r&&typeof r=="object"){const n=r;switch(typeof n.type=="string"?n.type:""){case"comment":return jxe(e,n);case"doctype":return Fxe(e,n);case"element":return Hxe(e,n);case"root":return qxe(e,n);case"text":return Uxe(e,n)}}}function jxe(e,r){if(e.schema.allowComments){const n=typeof r.value=="string"?r.value:"",o=n.indexOf("-->"),i={type:"comment",value:o<0?n:n.slice(0,o)};return L1(i,r),i}}function Fxe(e,r){if(e.schema.allowDoctypes){const n={type:"doctype"};return L1(n,r),n}}function Hxe(e,r){const n=typeof r.tagName=="string"?r.tagName:"";e.stack.push(n);const o=Tz(e,r.children),a=Vxe(e,r.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&Xc.call(e.schema.ancestors,n))){const s=e.schema.ancestors[n];let c=-1;for(i=!1;++c1){let a=!1,i=0;for(;++i-1&&i>c||l>-1&&i>l||s>-1&&i>s)return!0;let u=-1;for(;++u4&&r.slice(0,4).toLowerCase()==="data")return n}function Gxe(e){return function(r){return Bxe(r,e)}}const Xxe=/["&'<>`]/g,Kxe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zxe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Qxe=/[|\\{}()[\]^$+*?.]/g,Dz=new WeakMap;function Jxe(e,r){if(e=e.replace(r.subset?ewe(r.subset):Xxe,o),r.subset||r.escapeOnly)return e;return e.replace(Kxe,n).replace(Zxe,o);function n(a,i,l){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),r)}function o(a,i,l){return r.format(a.charCodeAt(0),l.charCodeAt(i+1),r)}}function ewe(e){let r=Dz.get(e);return r||(r=twe(e),Dz.set(e,r)),r}function twe(e){const r=[];let n=-1;for(;++n",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},lwe=["cent","copy","divide","gt","lt","not","para","times"],Pz={}.hasOwnProperty,r8={};let S3;for(S3 in t8)Pz.call(t8,S3)&&(r8[t8[S3]]=S3);const swe=/[^\dA-Za-z]/;function cwe(e,r,n,o){const a=String.fromCharCode(e);if(Pz.call(r8,a)){const i=r8[a],l="&"+i;return n&&iwe.includes(i)&&!lwe.includes(i)&&(!o||r&&r!==61&&swe.test(String.fromCharCode(r)))?l:l+";"}return""}function uwe(e,r,n){let o=nwe(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=cwe(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=awe(e,r,n.omitOptionalSemicolons);i.length|^->||--!>|"],hwe=["<",">"];function fwe(e,r,n,o){return o.settings.bogusComments?""+qh(e.value,Object.assign({},o.settings.characterReferences,{subset:pwe}))+">":"";function a(i){return qh(i,Object.assign({},o.settings.characterReferences,{subset:hwe}))}}function mwe(e,r,n,o){return""}function C3(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}const gwe=/[ \t\n\f\r]/g;function n8(e){return typeof e=="object"?e.type==="text"?$z(e.value):!1:$z(e)}function $z(e){return e.replace(gwe,"")===""}const Ln=Oz(1),Mz=Oz(-1),ywe=[];function Oz(e){return r;function r(n,o,a){const i=n?n.children:ywe;let l=(o||0)+e,s=i[l];if(!a)for(;s&&n8(s);)l+=e,s=i[l];return s}}const bwe={}.hasOwnProperty;function Iz(e){return r;function r(n,o,a){return bwe.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const o8=Iz({body:xwe,caption:a8,colgroup:a8,dd:Ewe,dt:_we,head:a8,html:vwe,li:kwe,optgroup:Swe,option:Cwe,p:wwe,rp:Lz,rt:Lz,tbody:Rwe,td:zz,tfoot:Awe,th:zz,thead:Twe,tr:Nwe});function a8(e,r,n){const o=Ln(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&n8(o.value.charAt(0)))}function vwe(e,r,n){const o=Ln(n,r);return!o||o.type!=="comment"}function xwe(e,r,n){const o=Ln(n,r);return!o||o.type!=="comment"}function wwe(e,r,n){const o=Ln(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function kwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="li"}function _we(e,r,n){const o=Ln(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Ewe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function Lz(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Swe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function Cwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Twe(e,r,n){const o=Ln(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Rwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Awe(e,r,n){return!Ln(n,r)}function Nwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function zz(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const Dwe=Iz({body:Mwe,colgroup:Owe,head:$we,html:Pwe,tbody:Iwe});function Pwe(e){const r=Ln(e,-1);return!r||r.type!=="comment"}function $we(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function Mwe(e){const r=Ln(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&n8(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function Owe(e,r,n){const o=Mz(n,r),a=Ln(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&o8(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Iwe(e,r,n){const o=Mz(n,r),a=Ln(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&o8(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const T3={name:[[`
\f\r &/=>`.split(""),`
\f\r "&'/=>\``.split("")],[`\0
\f\r "&'/<=>`.split(""),`\0
@@ -58,77 +58,77 @@ function w1e(e,r){for(var n=0;n`.split(""),`\0
\f\r "&'<=>\``.split("")],[`\0
\f\r "&'<=>\``.split(""),`\0
-\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Lwe(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let l=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const s=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=E1);const u=zwe(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(l=!1),(u||!i||!Dwe(e,r,n))&&(s.push("<",e.tagName,u?" "+u:""),l&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(d),!l&&(!i||!oE(e,r,n))&&s.push(""+e.tagName+">"),s.join("")}function zwe(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=jwe(e,a,r[a]);i&&n.push(i)}}for(;++oC3(n,e.alternative)&&(l=e.alternative),s=l+Uh(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?T3.single:T3.double)[a][i],attribute:!0}))+l),c+(s&&"="+s))}const Bwe=["<","&"];function jz(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Uh(e.value,Object.assign({},o.settings.characterReferences,{subset:Bwe}))}function Fwe(e,r,n,o){return o.settings.allowDangerousHtml?e.value:jz(e,r,n,o)}function Hwe(e,r,n,o){return o.all(e)}const Uwe=B6("type",{invalid:qwe,unknown:Vwe,handlers:{comment:fwe,doctype:mwe,element:Lwe,raw:Fwe,root:Hwe,text:jz}});function qwe(e){throw new Error("Expected node, not `"+e+"`")}function Vwe(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const Ywe={},Wwe={},Gwe=[];function Xwe(e,r){const n=r||Ywe,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:Kwe,all:Zwe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||TL,characterReferences:n.characterReferences||Wwe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?E1:d3,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Kwe(e,r,n){return Uwe(e,r,n,this)}function Zwe(e){const r=[],n=e&&e.children||Gwe;let o=-1;for(;++o-1&&e.test(String.fromCharCode(n))}}function r2e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function n2e(e,r,n){const a=_3((n||{}).ignore||[]),i=o2e(r);let l=-1;for(;++l0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=T+1:(b!==T&&C.push({type:"text",value:u.value.slice(b,T)}),Array.isArray(A)?C.push(...A):A&&C.push(A),b=T+_[0].length,k=!0),!f.global)break;_=f.exec(u.value)}return k?(b?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let n=r[0],o=n.indexOf(")");const a=C3(e,"(");let i=C3(e,")");for(;o!==-1&&a>i;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),i++;return[e,n]}function Bz(e,r){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Td(n)||A3(n))&&(!r||n!==47)}function Ui(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Fz.peek=T2e;function v2e(){this.buffer()}function x2e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function w2e(){this.buffer()}function k2e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _2e(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ui(this.sliceSerialize(e)).toLowerCase(),n.label=r}function E2e(e){this.exit(e)}function S2e(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ui(this.sliceSerialize(e)).toLowerCase(),n.label=r}function C2e(e){this.exit(e)}function T2e(){return"["}function Fz(e,r,n,o){const a=n.createTracker(o);let i=a.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),l(),i+=a.move("]"),i}function R2e(){return{enter:{gfmFootnoteCallString:v2e,gfmFootnoteCall:x2e,gfmFootnoteDefinitionLabelString:w2e,gfmFootnoteDefinition:k2e},exit:{gfmFootnoteCallString:_2e,gfmFootnoteCall:E2e,gfmFootnoteDefinitionLabelString:S2e,gfmFootnoteDefinition:C2e}}}function A2e(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:n,footnoteReference:Fz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(o,a,i,l){const s=i.createTracker(l);let c=s.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return c+=s.move(i.safe(i.associationId(o),{before:c,after:"]"})),d(),c+=s.move("]:"),o.children&&o.children.length>0&&(s.shift(4),c+=s.move((r?`
-`:" ")+i.indentLines(i.containerFlow(o,s.current()),r?Hz:N2e))),u(),c}}function N2e(e,r,n){return r===0?e:Hz(e,r,n)}function Hz(e,r,n){return(n?"":" ")+e}const D2e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Uz.peek=I2e;function $2e(){return{canContainEols:["delete"],enter:{strikethrough:O2e},exit:{strikethrough:M2e}}}function P2e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:D2e}],handlers:{delete:Uz}}}function O2e(e){this.enter({type:"delete",children:[]},e)}function M2e(e){this.exit(e)}function Uz(e,r,n,o){const a=n.createTracker(o),i=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),i(),l}function I2e(){return"~"}function L2e(e){return e.length}function z2e(e,r){const n=r||{},o=(n.align||[]).concat(),a=n.stringLength||L2e,i=[],l=[],s=[],c=[];let u=0,d=-1;for(;++du&&(u=e[d].length);++kc[k])&&(c[k]=_)}x.push(C)}l[d]=x,s[d]=w}let p=-1;if(typeof o=="object"&&"length"in o)for(;++pc[p]&&(c[p]=C),g[p]=C),f[p]=_}l.splice(1,0,f),s.splice(1,0,g),d=-1;const b=[];for(;++d "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),F2e);return a(),l}function F2e(e,r,n){return">"+(n?"":" ")+e}function H2e(e,r){return Vz(e,r.inConstruct,!0)&&!Vz(e,r.notInConstruct,!1)}function Vz(e,r,n){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return n;let o=-1;for(;++o\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Lwe(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let l=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const s=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=E1);const u=zwe(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(l=!1),(u||!i||!Dwe(e,r,n))&&(s.push("<",e.tagName,u?" "+u:""),l&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(d),!l&&(!i||!o8(e,r,n))&&s.push(""+e.tagName+">"),s.join("")}function zwe(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=Bwe(e,a,r[a]);i&&n.push(i)}}for(;++oC3(n,e.alternative)&&(l=e.alternative),s=l+qh(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?T3.single:T3.double)[a][i],attribute:!0}))+l),c+(s&&"="+s))}const jwe=["<","&"];function Bz(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:qh(e.value,Object.assign({},o.settings.characterReferences,{subset:jwe}))}function Fwe(e,r,n,o){return o.settings.allowDangerousHtml?e.value:Bz(e,r,n,o)}function Hwe(e,r,n,o){return o.all(e)}const qwe=j_("type",{invalid:Uwe,unknown:Vwe,handlers:{comment:fwe,doctype:mwe,element:Lwe,raw:Fwe,root:Hwe,text:Bz}});function Uwe(e){throw new Error("Expected node, not `"+e+"`")}function Vwe(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const Ywe={},Wwe={},Gwe=[];function Xwe(e,r){const n=r||Ywe,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:Kwe,all:Zwe,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||TL,characterReferences:n.characterReferences||Wwe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?E1:d3,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Kwe(e,r,n){return qwe(e,r,n,this)}function Zwe(e){const r=[],n=e&&e.children||Gwe;let o=-1;for(;++o-1&&e.test(String.fromCharCode(n))}}function r2e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function n2e(e,r,n){const a=_3((n||{}).ignore||[]),i=o2e(r);let l=-1;for(;++l0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=T+1:(b!==T&&C.push({type:"text",value:u.value.slice(b,T)}),Array.isArray(A)?C.push(...A):A&&C.push(A),b=T+_[0].length,k=!0),!f.global)break;_=f.exec(u.value)}return k?(b?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let n=r[0],o=n.indexOf(")");const a=C3(e,"(");let i=C3(e,")");for(;o!==-1&&a>i;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),i++;return[e,n]}function jz(e,r){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Td(n)||A3(n))&&(!r||n!==47)}function qi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Fz.peek=T2e;function v2e(){this.buffer()}function x2e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function w2e(){this.buffer()}function k2e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _2e(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=qi(this.sliceSerialize(e)).toLowerCase(),n.label=r}function E2e(e){this.exit(e)}function S2e(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=qi(this.sliceSerialize(e)).toLowerCase(),n.label=r}function C2e(e){this.exit(e)}function T2e(){return"["}function Fz(e,r,n,o){const a=n.createTracker(o);let i=a.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),l(),i+=a.move("]"),i}function R2e(){return{enter:{gfmFootnoteCallString:v2e,gfmFootnoteCall:x2e,gfmFootnoteDefinitionLabelString:w2e,gfmFootnoteDefinition:k2e},exit:{gfmFootnoteCallString:_2e,gfmFootnoteCall:E2e,gfmFootnoteDefinitionLabelString:S2e,gfmFootnoteDefinition:C2e}}}function A2e(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:n,footnoteReference:Fz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(o,a,i,l){const s=i.createTracker(l);let c=s.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return c+=s.move(i.safe(i.associationId(o),{before:c,after:"]"})),d(),c+=s.move("]:"),o.children&&o.children.length>0&&(s.shift(4),c+=s.move((r?`
+`:" ")+i.indentLines(i.containerFlow(o,s.current()),r?Hz:N2e))),u(),c}}function N2e(e,r,n){return r===0?e:Hz(e,r,n)}function Hz(e,r,n){return(n?"":" ")+e}const D2e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qz.peek=I2e;function P2e(){return{canContainEols:["delete"],enter:{strikethrough:M2e},exit:{strikethrough:O2e}}}function $2e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:D2e}],handlers:{delete:qz}}}function M2e(e){this.enter({type:"delete",children:[]},e)}function O2e(e){this.exit(e)}function qz(e,r,n,o){const a=n.createTracker(o),i=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),i(),l}function I2e(){return"~"}function L2e(e){return e.length}function z2e(e,r){const n=r||{},o=(n.align||[]).concat(),a=n.stringLength||L2e,i=[],l=[],s=[],c=[];let u=0,d=-1;for(;++du&&(u=e[d].length);++kc[k])&&(c[k]=_)}x.push(C)}l[d]=x,s[d]=w}let p=-1;if(typeof o=="object"&&"length"in o)for(;++pc[p]&&(c[p]=C),g[p]=C),f[p]=_}l.splice(1,0,f),s.splice(1,0,g),d=-1;const b=[];for(;++d "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),F2e);return a(),l}function F2e(e,r,n){return">"+(n?"":" ")+e}function H2e(e,r){return Vz(e,r.inConstruct,!0)&&!Vz(e,r.notInConstruct,!1)}function Vz(e,r,n){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return n;let o=-1;for(;++ol&&(l=i):i=1,a=o+r.length,o=n.indexOf(r,a);return l}function q2e(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function V2e(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Y2e(e,r,n,o){const a=V2e(n),i=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(q2e(e,n)){const p=n.enter("codeIndented"),f=n.indentLines(i,W2e);return p(),f}const s=n.createTracker(o),c=a.repeat(Math.max(U2e(i,a)+1,3)),u=n.enter("codeFenced");let d=s.move(c);if(e.lang){const p=n.enter(`codeFencedLang${l}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${l}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
+`}function q2e(e,r){const n=String(e);let o=n.indexOf(r),a=o,i=0,l=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===a?++i>l&&(l=i):i=1,a=o+r.length,o=n.indexOf(r,a);return l}function U2e(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function V2e(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Y2e(e,r,n,o){const a=V2e(n),i=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(U2e(e,n)){const p=n.enter("codeIndented"),f=n.indentLines(i,W2e);return p(),f}const s=n.createTracker(o),c=a.repeat(Math.max(q2e(i,a)+1,3)),u=n.enter("codeFenced");let d=s.move(c);if(e.lang){const p=n.enter(`codeFencedLang${l}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${l}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
`,encode:["`"],...s.current()})),p()}return d+=s.move(`
`),i&&(d+=s.move(i+`
-`)),d+=s.move(c),u(),d}function W2e(e,r,n){return(n?"":" ")+e}function uE(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function G2e(e,r,n,o){const a=uE(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let s=n.enter("label");const c=n.createTracker(o);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":`
-`,...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),s()),l(),u}function X2e(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function z1(e){return""+e.toString(16).toUpperCase()+";"}function qh(e){if(e===null||xr(e)||Td(e))return 1;if(A3(e))return 2}function N3(e,r,n){const o=qh(e),a=qh(r);return o===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Wz.peek=K2e;function Wz(e,r,n,o){const a=X2e(n),i=n.enter("emphasis"),l=n.createTracker(o),s=l.move(a);let c=l.move(n.containerPhrasing(e,{after:a,before:s,...l.current()}));const u=c.charCodeAt(0),d=N3(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z1(u)+c.slice(1));const p=c.charCodeAt(c.length-1),f=N3(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+z1(p));const g=l.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+g}function K2e(e,r,n){return n.options.emphasis||"*"}const Z2e={};function D3(e,r){const n=r||Z2e,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Gz(e,o,a)}function Gz(e,r,n){if(Q2e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Xz(e.children,r,n)}return Array.isArray(e)?Xz(e,r,n):""}function Xz(e,r,n){const o=[];let a=-1;for(;++a",...c.current()})),u+=c.move(">")):(s=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":`
+`,...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),s()),l(),u}function X2e(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function z1(e){return""+e.toString(16).toUpperCase()+";"}function Uh(e){if(e===null||xr(e)||Td(e))return 1;if(A3(e))return 2}function N3(e,r,n){const o=Uh(e),a=Uh(r);return o===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Wz.peek=K2e;function Wz(e,r,n,o){const a=X2e(n),i=n.enter("emphasis"),l=n.createTracker(o),s=l.move(a);let c=l.move(n.containerPhrasing(e,{after:a,before:s,...l.current()}));const u=c.charCodeAt(0),d=N3(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z1(u)+c.slice(1));const p=c.charCodeAt(c.length-1),f=N3(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+z1(p));const g=l.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+g}function K2e(e,r,n){return n.options.emphasis||"*"}const Z2e={};function D3(e,r){const n=r||Z2e,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Gz(e,o,a)}function Gz(e,r,n){if(Q2e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Xz(e.children,r,n)}return Array.isArray(e)?Xz(e,r,n):""}function Xz(e,r,n){const o=[];let a=-1;for(;++a",...c.current()})),u+=c.move(">")):(s=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),s()),u+=c.move(")"),l(),u}function r4e(){return"!"}Qz.peek=n4e;function Qz(e,r,n,o){const a=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(o);let c=s.move("![");const u=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),l();const d=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return l(),n.stack=d,i(),a==="full"||!u||u!==p?c+=s.move(p+"]"):a==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function n4e(){return"!"}Jz.peek=o4e;function Jz(e,r,n){let o=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i\u007F]/.test(e.url))}tj.peek=a4e;function tj(e,r,n,o){const a=uE(n),i=a==='"'?"Quote":"Apostrophe",l=n.createTracker(o);let s,c;if(ej(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let p=l.move("<");return p+=l.move(n.containerPhrasing(e,{before:p,after:">",...l.current()})),p+=l.move(">"),s(),n.stack=d,p}s=n.enter("link"),c=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(c=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),c()),u+=l.move(")"),s(),u}function a4e(e,r,n){return ej(e,n)?"<":"["}rj.peek=i4e;function rj(e,r,n,o){const a=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(o);let c=s.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),l();const d=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return l(),n.stack=d,i(),a==="full"||!u||u!==p?c+=s.move(p+"]"):a==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function i4e(){return"["}function dE(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function l4e(e){const r=dE(e),n=e.options.bulletOther;if(!n)return r==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+n+"`) to be different");return n}function s4e(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function nj(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function c4e(e,r,n,o){const a=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?s4e(n):dE(n);const s=e.ordered?l==="."?")":".":l4e(n);let c=r&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),nj(n)===l&&d){let p=-1;for(;++p-1?r.start:1)+(n.options.incrementListMarker===!1?0:r.children.indexOf(e))+i);let l=i.length+1;(a==="tab"||a==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=n.createTracker(o);s.move(i+" ".repeat(l-i.length)),s.shift(l);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),d);return c(),u;function d(p,f,g){return f?(g?"":" ".repeat(l))+p:(g?i:i+" ".repeat(l-i.length))+p}}function p4e(e,r,n,o){const a=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,o);return i(),a(),l}const h4e=_3(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function f4e(e,r,n,o){return(e.children.some(function(l){return h4e(l)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function m4e(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}oj.peek=g4e;function oj(e,r,n,o){const a=m4e(n),i=n.enter("strong"),l=n.createTracker(o),s=l.move(a+a);let c=l.move(n.containerPhrasing(e,{after:a,before:s,...l.current()}));const u=c.charCodeAt(0),d=N3(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z1(u)+c.slice(1));const p=c.charCodeAt(c.length-1),f=N3(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+z1(p));const g=l.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+g}function g4e(e,r,n){return n.options.strong||"*"}function y4e(e,r,n,o){return n.safe(e.value,o)}function b4e(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function v4e(e,r,n){const o=(nj(n)+(n.options.ruleSpaces?" ":"")).repeat(b4e(n));return n.options.ruleSpaces?o.slice(0,-1):o}const aj={blockquote:B2e,break:Yz,code:Y2e,definition:G2e,emphasis:Wz,hardBreak:Yz,heading:e4e,html:Kz,image:Zz,imageReference:Qz,inlineCode:Jz,link:tj,linkReference:rj,list:c4e,listItem:d4e,paragraph:p4e,root:f4e,strong:oj,text:y4e,thematicBreak:v4e},ij={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
-`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},x4e={}.hasOwnProperty;function pE(e){return x4e.call(ij,e)?ij[e]:!1}function lj(e,r){const n=Number.parseInt(e,r);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const w4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function k4e(e){return e.replace(w4e,_4e)}function _4e(e,r,n){if(r)return r;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return lj(n.slice(i?2:1),i?16:10)}return pE(n)||e}function E4e(){return{enter:{table:S4e,tableData:sj,tableHeader:sj,tableRow:T4e},exit:{codeText:R4e,table:C4e,tableData:hE,tableHeader:hE,tableRow:hE}}}function S4e(e){const r=e._align;this.enter({type:"table",align:r.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function C4e(e){this.exit(e),this.data.inTable=void 0}function T4e(e){this.enter({type:"tableRow",children:[]},e)}function hE(e){this.exit(e)}function sj(e){this.enter({type:"tableCell",children:[]},e)}function R4e(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,A4e));const n=this.stack[this.stack.length-1];n.type,n.value=r,this.exit(e)}function A4e(e,r){return r==="|"?r:e}function N4e(e){const r=e||{},n=r.tableCellPadding,o=r.tablePipeAlign,a=r.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
+`,...i.current()});return/^[\t ]/.test(u)&&(u=z1(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),c(),s(),u}Kz.peek=t4e;function Kz(e){return e.value||""}function t4e(){return"<"}Zz.peek=r4e;function Zz(e,r,n,o){const a=u8(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let s=n.enter("label");const c=n.createTracker(o);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(s=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),s()),u+=c.move(")"),l(),u}function r4e(){return"!"}Qz.peek=n4e;function Qz(e,r,n,o){const a=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(o);let c=s.move("![");const u=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),l();const d=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return l(),n.stack=d,i(),a==="full"||!u||u!==p?c+=s.move(p+"]"):a==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function n4e(){return"!"}Jz.peek=o4e;function Jz(e,r,n){let o=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i\u007F]/.test(e.url))}tB.peek=a4e;function tB(e,r,n,o){const a=u8(n),i=a==='"'?"Quote":"Apostrophe",l=n.createTracker(o);let s,c;if(eB(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let p=l.move("<");return p+=l.move(n.containerPhrasing(e,{before:p,after:">",...l.current()})),p+=l.move(">"),s(),n.stack=d,p}s=n.enter("link"),c=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(c=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),c()),u+=l.move(")"),s(),u}function a4e(e,r,n){return eB(e,n)?"<":"["}rB.peek=i4e;function rB(e,r,n,o){const a=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(o);let c=s.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(u+"]["),l();const d=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return l(),n.stack=d,i(),a==="full"||!u||u!==p?c+=s.move(p+"]"):a==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function i4e(){return"["}function d8(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function l4e(e){const r=d8(e),n=e.options.bulletOther;if(!n)return r==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+n+"`) to be different");return n}function s4e(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function nB(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function c4e(e,r,n,o){const a=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?s4e(n):d8(n);const s=e.ordered?l==="."?")":".":l4e(n);let c=r&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),nB(n)===l&&d){let p=-1;for(;++p-1?r.start:1)+(n.options.incrementListMarker===!1?0:r.children.indexOf(e))+i);let l=i.length+1;(a==="tab"||a==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=n.createTracker(o);s.move(i+" ".repeat(l-i.length)),s.shift(l);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),d);return c(),u;function d(p,f,g){return f?(g?"":" ".repeat(l))+p:(g?i:i+" ".repeat(l-i.length))+p}}function p4e(e,r,n,o){const a=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,o);return i(),a(),l}const h4e=_3(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function f4e(e,r,n,o){return(e.children.some(function(l){return h4e(l)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function m4e(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}oB.peek=g4e;function oB(e,r,n,o){const a=m4e(n),i=n.enter("strong"),l=n.createTracker(o),s=l.move(a+a);let c=l.move(n.containerPhrasing(e,{after:a,before:s,...l.current()}));const u=c.charCodeAt(0),d=N3(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z1(u)+c.slice(1));const p=c.charCodeAt(c.length-1),f=N3(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+z1(p));const g=l.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+g}function g4e(e,r,n){return n.options.strong||"*"}function y4e(e,r,n,o){return n.safe(e.value,o)}function b4e(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function v4e(e,r,n){const o=(nB(n)+(n.options.ruleSpaces?" ":"")).repeat(b4e(n));return n.options.ruleSpaces?o.slice(0,-1):o}const aB={blockquote:j2e,break:Yz,code:Y2e,definition:G2e,emphasis:Wz,hardBreak:Yz,heading:e4e,html:Kz,image:Zz,imageReference:Qz,inlineCode:Jz,link:tB,linkReference:rB,list:c4e,listItem:d4e,paragraph:p4e,root:f4e,strong:oB,text:y4e,thematicBreak:v4e},iB={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
+`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},x4e={}.hasOwnProperty;function p8(e){return x4e.call(iB,e)?iB[e]:!1}function lB(e,r){const n=Number.parseInt(e,r);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const w4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function k4e(e){return e.replace(w4e,_4e)}function _4e(e,r,n){if(r)return r;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return lB(n.slice(i?2:1),i?16:10)}return p8(n)||e}function E4e(){return{enter:{table:S4e,tableData:sB,tableHeader:sB,tableRow:T4e},exit:{codeText:R4e,table:C4e,tableData:h8,tableHeader:h8,tableRow:h8}}}function S4e(e){const r=e._align;this.enter({type:"table",align:r.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function C4e(e){this.exit(e),this.data.inTable=void 0}function T4e(e){this.enter({type:"tableRow",children:[]},e)}function h8(e){this.exit(e)}function sB(e){this.enter({type:"tableCell",children:[]},e)}function R4e(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,A4e));const n=this.stack[this.stack.length-1];n.type,n.value=r,this.exit(e)}function A4e(e,r){return r==="|"?r:e}function N4e(e){const r=e||{},n=r.tableCellPadding,o=r.tablePipeAlign,a=r.stringLength,i=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:{inlineCode:f,table:l,tableCell:c,tableRow:s}};function l(g,b,x,w){return u(d(g,x,w),g.align)}function s(g,b,x,w){const k=p(g,x,w),C=u([k]);return C.slice(0,C.indexOf(`
-`))}function c(g,b,x,w){const k=x.enter("tableCell"),C=x.enter("phrasing"),_=x.containerPhrasing(g,{...w,before:i,after:i});return C(),k(),_}function u(g,b){return z2e(g,{align:b,alignDelimiters:o,padding:n,stringLength:a})}function d(g,b,x){const w=g.children;let k=-1;const C=[],_=b.enter("table");for(;++ka?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)l=Array.from(o),l.unshift(r,n),e.splice(...l);else for(n&&e.splice(r,n);i0?(wa(e,e.length,0,r),e):r}const uj={}.hasOwnProperty;function dj(e){const r={};let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Vh(e){const r=[];let n=-1,o=0,a=0;for(;++n55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(l=String.fromCharCode(i,s),a=1):l="�"}else l=String.fromCharCode(i);l&&(r.push(e.slice(o,n),encodeURIComponent(l)),o=n+a+1,l=""),a&&(n+=a,a=0)}return r.join("")+e.slice(o)}function $3(e,r,n){const o=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[o][1].end},f={...e[n][1].start};xj(p,-c),xj(f,c),l={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[o][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:c>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[o][1].end={...l.start},e[n][1].start={...s.end},u=[],e[o][1].end.offset-e[o][1].start.offset&&(u=ei(u,[["enter",e[o][1],r],["exit",e[o][1],r]])),u=ei(u,[["enter",a,r],["enter",l,r],["exit",l,r],["enter",i,r]]),u=ei(u,$3(r.parser.constructs.insideSpan.null,e.slice(o+1,n),r)),u=ei(u,[["exit",i,r],["enter",s,r],["exit",s,r],["exit",a,r]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=ei(u,[["enter",e[n][1],r],["exit",e[n][1],r]])):d=0,wa(e,o-1,n-o+3,u),n=o+u.length-d-2;break}}for(n=-1;++n0&&Yt(A)?Qt(e,C,"linePrefix",i+1)(A):C(A)}function C(A){return A===null||pt(A)?e.check(Ej,x,T)(A):(e.enter("codeFlowValue"),_(A))}function _(A){return A===null||pt(A)?(e.exit("codeFlowValue"),C(A)):(e.consume(A),_)}function T(A){return e.exit("codeFenced"),r(A)}function R(A,D,N){let P=0;return O;function O(q){return A.enter("lineEnding"),A.consume(q),A.exit("lineEnding"),B}function B(q){return A.enter("codeFencedFence"),Yt(q)?Qt(A,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):L(q)}function L(q){return q===s?(A.enter("codeFencedFenceSequence"),Y(q)):N(q)}function Y(q){return q===s?(P++,A.consume(q),Y):P>=l?(A.exit("codeFencedFenceSequence"),Yt(q)?Qt(A,M,"whitespace")(q):M(q)):N(q)}function M(q){return q===null||pt(q)?(A.exit("codeFencedFence"),D(q)):N(q)}}}function lke(e,r,n){const o=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return o.parser.lazy[o.now().line]?n(l):r(l)}}const yE={name:"codeIndented",tokenize:cke},ske={partial:!0,tokenize:uke};function cke(e,r,n){const o=this;return a;function a(u){return e.enter("codeIndented"),Qt(e,i,"linePrefix",5)(u)}function i(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?c(u):pt(u)?e.attempt(ske,l,c)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||pt(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function c(u){return e.exit("codeIndented"),r(u)}}function uke(e,r,n){const o=this;return a;function a(l){return o.parser.lazy[o.now().line]?n(l):pt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):Qt(e,i,"linePrefix",5)(l)}function i(l){const s=o.events[o.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?r(l):pt(l)?a(l):n(l)}}const dke={name:"codeText",previous:hke,resolve:pke,tokenize:fke};function pke(e){let r=e.length-4,n=3,o,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=n;++o=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return rthis.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,n,o){const a=n||0;this.setCursor(Math.trunc(r));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&B1(this.left,o),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),B1(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),B1(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r=4?r(l):e.interrupt(o.parser.constructs.flow,n,r)(l)}}function Tj(e,r,n,o,a,i,l,s,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return p;function p(k){return k===60?(e.enter(o),e.enter(a),e.enter(i),e.consume(k),e.exit(i),f):k===null||k===32||k===41||R3(k)?n(k):(e.enter(o),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(k))}function f(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(o),r):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===62?(e.exit("chunkString"),e.exit(s),f(k)):k===null||k===60||pt(k)?n(k):(e.consume(k),k===92?b:g)}function b(k){return k===60||k===62||k===92?(e.consume(k),g):g(k)}function x(k){return!d&&(k===null||k===41||xr(k))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(o),r(k)):d999||g===null||g===91||g===93&&!c||g===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(o),r):pt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||pt(g)||s++>999?(e.exit("chunkString"),d(g)):(e.consume(g),c||(c=!Yt(g)),g===92?f:p)}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,p):p(g)}}function Aj(e,r,n,o,a,i){let l;return s;function s(f){return f===34||f===39||f===40?(e.enter(o),e.enter(a),e.consume(f),e.exit(a),l=f===40?41:f,c):n(f)}function c(f){return f===l?(e.enter(a),e.consume(f),e.exit(a),e.exit(o),r):(e.enter(i),u(f))}function u(f){return f===l?(e.exit(i),c(l)):f===null?n(f):pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Qt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===l||f===null||pt(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:d)}function p(f){return f===l||f===92?(e.consume(f),d):d(f)}}function F1(e,r){let n;return o;function o(a){return pt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,o):Yt(a)?Qt(e,o,n?"linePrefix":"lineSuffix")(a):r(a)}}const kke={name:"definition",tokenize:Eke},_ke={partial:!0,tokenize:Ske};function Eke(e,r,n){const o=this;let a;return i;function i(g){return e.enter("definition"),l(g)}function l(g){return Rj.call(o,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return a=Ui(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return xr(g)?F1(e,u)(g):u(g)}function u(g){return Tj(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(_ke,p,p)(g)}function p(g){return Yt(g)?Qt(e,f,"whitespace")(g):f(g)}function f(g){return g===null||pt(g)?(e.exit("definition"),o.parser.defined.push(a),r(g)):n(g)}}function Ske(e,r,n){return o;function o(s){return xr(s)?F1(e,a)(s):n(s)}function a(s){return Aj(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Yt(s)?Qt(e,l,"whitespace")(s):l(s)}function l(s){return s===null||pt(s)?r(s):n(s)}}const Cke={name:"hardBreakEscape",tokenize:Tke};function Tke(e,r,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return pt(i)?(e.exit("hardBreakEscape"),r(i)):n(i)}}const Rke={name:"headingAtx",resolve:Ake,tokenize:Nke};function Ake(e,r){let n=e.length-2,o=3,a,i;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(a={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},i={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},wa(e,o,n-o+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),e}function Nke(e,r,n){let o=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),l(d)}function l(d){return d===35&&o++<6?(e.consume(d),l):d===null||xr(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||pt(d)?(e.exit("atxHeading"),r(d)):Yt(d)?Qt(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||xr(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const Dke=["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"],Nj=["pre","script","style","textarea"],$ke={concrete:!0,name:"htmlFlow",resolveTo:Mke,tokenize:Ike},Pke={partial:!0,tokenize:zke},Oke={partial:!0,tokenize:Lke};function Mke(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function Ike(e,r,n){const o=this;let a,i,l,s,c;return u;function u(z){return d(z)}function d(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),p}function p(z){return z===33?(e.consume(z),f):z===47?(e.consume(z),i=!0,x):z===63?(e.consume(z),a=3,o.interrupt?r:F):Fo(z)?(e.consume(z),l=String.fromCharCode(z),w):n(z)}function f(z){return z===45?(e.consume(z),a=2,g):z===91?(e.consume(z),a=5,s=0,b):Fo(z)?(e.consume(z),a=4,o.interrupt?r:F):n(z)}function g(z){return z===45?(e.consume(z),o.interrupt?r:F):n(z)}function b(z){const W="CDATA[";return z===W.charCodeAt(s++)?(e.consume(z),s===W.length?o.interrupt?r:L:b):n(z)}function x(z){return Fo(z)?(e.consume(z),l=String.fromCharCode(z),w):n(z)}function w(z){if(z===null||z===47||z===62||xr(z)){const W=z===47,X=l.toLowerCase();return!W&&!i&&Nj.includes(X)?(a=1,o.interrupt?r(z):L(z)):Dke.includes(l.toLowerCase())?(a=6,W?(e.consume(z),k):o.interrupt?r(z):L(z)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(z):i?C(z):_(z))}return z===45||Co(z)?(e.consume(z),l+=String.fromCharCode(z),w):n(z)}function k(z){return z===62?(e.consume(z),o.interrupt?r:L):n(z)}function C(z){return Yt(z)?(e.consume(z),C):O(z)}function _(z){return z===47?(e.consume(z),O):z===58||z===95||Fo(z)?(e.consume(z),T):Yt(z)?(e.consume(z),_):O(z)}function T(z){return z===45||z===46||z===58||z===95||Co(z)?(e.consume(z),T):R(z)}function R(z){return z===61?(e.consume(z),A):Yt(z)?(e.consume(z),R):_(z)}function A(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),c=z,D):Yt(z)?(e.consume(z),A):N(z)}function D(z){return z===c?(e.consume(z),c=null,P):z===null||pt(z)?n(z):(e.consume(z),D)}function N(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||xr(z)?R(z):(e.consume(z),N)}function P(z){return z===47||z===62||Yt(z)?_(z):n(z)}function O(z){return z===62?(e.consume(z),B):n(z)}function B(z){return z===null||pt(z)?L(z):Yt(z)?(e.consume(z),B):n(z)}function L(z){return z===45&&a===2?(e.consume(z),I):z===60&&a===1?(e.consume(z),U):z===62&&a===4?(e.consume(z),J):z===63&&a===3?(e.consume(z),F):z===93&&a===5?(e.consume(z),G):pt(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Pke,Q,Y)(z)):z===null||pt(z)?(e.exit("htmlFlowData"),Y(z)):(e.consume(z),L)}function Y(z){return e.check(Oke,M,Q)(z)}function M(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),q}function q(z){return z===null||pt(z)?Y(z):(e.enter("htmlFlowData"),L(z))}function I(z){return z===45?(e.consume(z),F):L(z)}function U(z){return z===47?(e.consume(z),l="",V):L(z)}function V(z){if(z===62){const W=l.toLowerCase();return Nj.includes(W)?(e.consume(z),J):L(z)}return Fo(z)&&l.length<8?(e.consume(z),l+=String.fromCharCode(z),V):L(z)}function G(z){return z===93?(e.consume(z),F):L(z)}function F(z){return z===62?(e.consume(z),J):z===45&&a===2?(e.consume(z),F):L(z)}function J(z){return z===null||pt(z)?(e.exit("htmlFlowData"),Q(z)):(e.consume(z),J)}function Q(z){return e.exit("htmlFlow"),r(z)}}function Lke(e,r,n){const o=this;return a;function a(l){return pt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return o.parser.lazy[o.now().line]?n(l):r(l)}}function zke(e,r,n){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(j1,r,n)}}const jke={name:"htmlText",tokenize:Bke};function Bke(e,r,n){const o=this;let a,i,l;return s;function s(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),c}function c(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),R):F===63?(e.consume(F),_):Fo(F)?(e.consume(F),N):n(F)}function u(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),i=0,b):Fo(F)?(e.consume(F),C):n(F)}function d(F){return F===45?(e.consume(F),g):n(F)}function p(F){return F===null?n(F):F===45?(e.consume(F),f):pt(F)?(l=p,U(F)):(e.consume(F),p)}function f(F){return F===45?(e.consume(F),g):p(F)}function g(F){return F===62?I(F):F===45?f(F):p(F)}function b(F){const J="CDATA[";return F===J.charCodeAt(i++)?(e.consume(F),i===J.length?x:b):n(F)}function x(F){return F===null?n(F):F===93?(e.consume(F),w):pt(F)?(l=x,U(F)):(e.consume(F),x)}function w(F){return F===93?(e.consume(F),k):x(F)}function k(F){return F===62?I(F):F===93?(e.consume(F),k):x(F)}function C(F){return F===null||F===62?I(F):pt(F)?(l=C,U(F)):(e.consume(F),C)}function _(F){return F===null?n(F):F===63?(e.consume(F),T):pt(F)?(l=_,U(F)):(e.consume(F),_)}function T(F){return F===62?I(F):_(F)}function R(F){return Fo(F)?(e.consume(F),A):n(F)}function A(F){return F===45||Co(F)?(e.consume(F),A):D(F)}function D(F){return pt(F)?(l=D,U(F)):Yt(F)?(e.consume(F),D):I(F)}function N(F){return F===45||Co(F)?(e.consume(F),N):F===47||F===62||xr(F)?P(F):n(F)}function P(F){return F===47?(e.consume(F),I):F===58||F===95||Fo(F)?(e.consume(F),O):pt(F)?(l=P,U(F)):Yt(F)?(e.consume(F),P):I(F)}function O(F){return F===45||F===46||F===58||F===95||Co(F)?(e.consume(F),O):B(F)}function B(F){return F===61?(e.consume(F),L):pt(F)?(l=B,U(F)):Yt(F)?(e.consume(F),B):P(F)}function L(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),a=F,Y):pt(F)?(l=L,U(F)):Yt(F)?(e.consume(F),L):(e.consume(F),M)}function Y(F){return F===a?(e.consume(F),a=void 0,q):F===null?n(F):pt(F)?(l=Y,U(F)):(e.consume(F),Y)}function M(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||xr(F)?P(F):(e.consume(F),M)}function q(F){return F===47||F===62||xr(F)?P(F):n(F)}function I(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),r):n(F)}function U(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),V}function V(F){return Yt(F)?Qt(e,G,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):G(F)}function G(F){return e.enter("htmlTextData"),l(F)}}const bE={name:"labelEnd",resolveAll:qke,resolveTo:Vke,tokenize:Yke},Fke={tokenize:Wke},Hke={tokenize:Gke},Uke={tokenize:Xke};function qke(e){let r=-1;const n=[];for(;++r=3&&(u===null||pt(u))?(e.exit("thematicBreak"),r(u)):n(u)}function c(u){return u===a?(e.consume(u),o++,c):(e.exit("thematicBreakSequence"),Yt(u)?Qt(e,s,"whitespace")(u):s(u))}}const Ko={continuation:{tokenize:a5e},exit:l5e,name:"list",tokenize:o5e},r5e={partial:!0,tokenize:s5e},n5e={partial:!0,tokenize:i5e};function o5e(e,r,n){const o=this,a=o.events[o.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return s;function s(g){const b=o.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!o.containerState.marker||g===o.containerState.marker:iE(g)){if(o.containerState.type||(o.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(P3,n,u)(g):u(g);if(!o.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return iE(g)&&++l<10?(e.consume(g),c):(!o.interrupt||l<2)&&(o.containerState.marker?g===o.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||g,e.check(j1,o.interrupt?n:d,e.attempt(r5e,f,p))}function d(g){return o.containerState.initialBlankLine=!0,i++,f(g)}function p(g){return Yt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),f):n(g)}function f(g){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(g)}}function a5e(e,r,n){const o=this;return o.containerState._closeFlow=void 0,e.check(j1,a,i);function a(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Qt(e,r,"listItemIndent",o.containerState.size+1)(s)}function i(s){return o.containerState.furtherBlankLines||!Yt(s)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,l(s)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(n5e,r,l)(s))}function l(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,Qt(e,e.attempt(Ko,r,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function i5e(e,r,n){const o=this;return Qt(e,a,"listItemIndent",o.containerState.size+1);function a(i){const l=o.events[o.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===o.containerState.size?r(i):n(i)}}function l5e(e){e.exit(this.containerState.type)}function s5e(e,r,n){const o=this;return Qt(e,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const l=o.events[o.events.length-1];return!Yt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):n(i)}}const Dj={name:"setextUnderline",resolveTo:c5e,tokenize:u5e};function c5e(e,r){let n=e.length,o,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",l,r]),e.splice(i+1,0,["exit",e[o][1],r]),e[o][1].end={...e[i][1].end}):e[o][1]=l,e.push(["exit",l,r]),e}function u5e(e,r,n){const o=this;let a;return i;function i(u){let d=o.events.length,p;for(;d--;)if(o.events[d][1].type!=="lineEnding"&&o.events[d][1].type!=="linePrefix"&&o.events[d][1].type!=="content"){p=o.events[d][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||p)?(e.enter("setextHeadingLine"),a=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Yt(u)?Qt(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||pt(u)?(e.exit("setextHeadingLine"),r(u)):n(u)}}const d5e={tokenize:v5e,partial:!0};function p5e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:g5e,continuation:{tokenize:y5e},exit:b5e}},text:{91:{name:"gfmFootnoteCall",tokenize:m5e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:h5e,resolveTo:f5e}}}}function h5e(e,r,n){const o=this;let a=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let l;for(;a--;){const c=o.events[a][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!l||!l._balanced)return n(c);const u=Ui(o.sliceSerialize({start:l.end,end:o.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),r(c))}}function f5e(e,r){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 o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",o,r],e[n+3],e[n+4],["enter",a,r],["exit",a,r],["enter",i,r],["enter",l,r],["exit",l,r],["exit",i,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(n,e.length-n+1,...s),e}function m5e(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,l;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),c}function c(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(i>999||p===93&&!l||p===null||p===91||xr(p))return n(p);if(p===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(Ui(o.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):n(p)}return xr(p)||(l=!0),i++,e.consume(p),p===92?d:u}function d(p){return p===91||p===92||p===93?(e.consume(p),i++,u):u(p)}}function g5e(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,l=0,s;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(b)}function d(b){if(l>999||b===93&&!s||b===null||b===91||xr(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return i=Ui(o.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return xr(b)||(s=!0),l++,e.consume(b),b===92?p:d}function p(b){return b===91||b===92||b===93?(e.consume(b),l++,d):d(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),Qt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return r(b)}}function y5e(e,r,n){return e.check(j1,r,e.attempt(d5e,r,n))}function b5e(e){e.exit("gfmFootnoteDefinition")}function v5e(e,r,n){const o=this;return Qt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const l=o.events[o.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?r(i):n(i)}}function x5e(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function a(l,s){let c=-1;for(;++c1?c(b):(l.consume(b),p++,g);if(p<2&&!n)return c(b);const w=l.exit("strikethroughSequenceTemporary"),k=qh(b);return w._open=!k||k===2&&!!x,w._close=!x||x===2&&!!k,s(b)}}}class w5e{constructor(){this.map=[]}add(r,n,o){k5e(this,r,n,o)}consume(r){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(r.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),r.length=this.map[n][0];o.push(r.slice()),r.length=0;let a=o.pop();for(;a;){for(const i of a)r.push(i);a=o.pop()}this.map.length=0}}function k5e(e,r,n,o){let a=0;if(!(n===0&&o.length===0)){for(;a-1;){const M=o.events[B][1].type;if(M==="lineEnding"||M==="linePrefix")B--;else break}const L=B>-1?o.events[B][1].type:null,Y=L==="tableHead"||L==="tableRow"?A:c;return Y===A&&o.parser.lazy[o.now().line]?n(O):Y(O)}function c(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(l=!0,i+=1),d(O)}function d(O){return O===null?n(O):pt(O)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):n(O):Yt(O)?Qt(e,d,"whitespace")(O):(i+=1,l&&(l=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),l=!0,d):(e.enter("data"),p(O)))}function p(O){return O===null||O===124||xr(O)?(e.exit("data"),d(O)):(e.consume(O),O===92?f:p)}function f(O){return O===92||O===124?(e.consume(O),p):p(O)}function g(O){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(O):(e.enter("tableDelimiterRow"),l=!1,Yt(O)?Qt(e,b,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):b(O))}function b(O){return O===45||O===58?w(O):O===124?(l=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),x):R(O)}function x(O){return Yt(O)?Qt(e,w,"whitespace")(O):w(O)}function w(O){return O===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),k):O===45?(i+=1,k(O)):O===null||pt(O)?T(O):R(O)}function k(O){return O===45?(e.enter("tableDelimiterFiller"),C(O)):R(O)}function C(O){return O===45?(e.consume(O),C):O===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return Yt(O)?Qt(e,T,"whitespace")(O):T(O)}function T(O){return O===124?b(O):O===null||pt(O)?!l||a!==i?R(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(O)):R(O)}function R(O){return n(O)}function A(O){return e.enter("tableRow"),D(O)}function D(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),D):O===null||pt(O)?(e.exit("tableRow"),r(O)):Yt(O)?Qt(e,D,"whitespace")(O):(e.enter("data"),N(O))}function N(O){return O===null||O===124||xr(O)?(e.exit("data"),D(O)):(e.consume(O),O===92?P:N)}function P(O){return O===92||O===124?(e.consume(O),N):N(O)}}function C5e(e,r){let n=-1,o=!0,a=0,i=[0,0,0,0],l=[0,0,0,0],s=!1,c=0,u,d,p;const f=new w5e;for(;++nn[2]+1){const b=n[2]+1,x=n[3]-n[2]-1;e.add(b,x,[])}}e.add(n[3]+1,0,[["exit",p,r]])}return a!==void 0&&(i.end=Object.assign({},Yh(r.events,a)),e.add(a,0,[["exit",i,r]]),i=void 0),i}function $j(e,r,n,o,a){const i=[],l=Yh(r.events,n);a&&(a.end=Object.assign({},l),i.push(["exit",a,r])),o.end=Object.assign({},l),i.push(["exit",o,r]),e.add(n+1,0,i)}function Yh(e,r){const n=e[r],o=n[0]==="enter"?"start":"end";return n[1][o]}const T5e={name:"tasklistCheck",tokenize:A5e};function R5e(){return{text:{91:T5e}}}function A5e(e,r,n){const o=this;return a;function a(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return xr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),l):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),l):n(c)}function l(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return pt(c)?r(c):Yt(c)?e.check({tokenize:N5e},r,n)(c):n(c)}}function N5e(e,r,n){return Qt(e,o,"whitespace");function o(a){return a===null?n(a):r(a)}}function D5e(e){return dj([F4e(),p5e(),x5e(e),E5e(),R5e()])}const $5e={};function P5e(e){const r=this,n=e||$5e,o=r.data(),a=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),l=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);a.push(D5e(n)),i.push(M4e()),l.push(I4e(n))}const O5e={tokenize:M5e};function M5e(e){const r=e.attempt(this.parser.constructs.contentInitial,o,a);let n;return r;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Qt(e,r,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return pt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),l)}}const I5e={tokenize:L5e},Pj={tokenize:z5e};function L5e(e){const r=this,n=[];let o=0,a,i,l;return s;function s(_){if(ol))return;const D=r.events.length;let N=D,P,O;for(;N--;)if(r.events[N][0]==="exit"&&r.events[N][1].type==="chunkFlow"){if(P){O=r.events[N][1].end;break}P=!0}for(k(o),A=D;A_;){const R=n[T];r.containerState=R[1],R[0].exit.call(r,e)}n.length=_}function C(){a.write([null]),i=void 0,a=void 0,r.containerState._closeFlow=void 0}}function z5e(e,r,n){return Qt(e,e.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const j5e={tokenize:B5e};function B5e(e){const r=this,n=e.attempt(j1,o,e.attempt(this.parser.constructs.flowInitial,a,Qt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(yke,a)),"linePrefix")));return n;function o(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),r.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r.currentConstruct=void 0,n}}const F5e={resolveAll:Mj()},H5e=Oj("string"),U5e=Oj("text");function Oj(e){return{resolveAll:Mj(e==="text"?q5e:void 0),tokenize:r};function r(n){const o=this,a=this.parser.constructs[e],i=n.attempt(a,l,s);return l;function l(d){return u(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const p=a[d];let f=-1;if(p)for(;++f-1){const s=l[0];typeof s=="string"?l[0]=s.slice(o):l.shift()}i>0&&l.push(e[a].slice(0,i))}return l}function G5e(e,r){let n=-1;const o=[];let a;for(;++na?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)l=Array.from(o),l.unshift(r,n),e.splice(...l);else for(n&&e.splice(r,n);i0?(wa(e,e.length,0,r),e):r}const uB={}.hasOwnProperty;function dB(e){const r={};let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Vh(e){const r=[];let n=-1,o=0,a=0;for(;++n55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(l=String.fromCharCode(i,s),a=1):l="�"}else l=String.fromCharCode(i);l&&(r.push(e.slice(o,n),encodeURIComponent(l)),o=n+a+1,l=""),a&&(n+=a,a=0)}return r.join("")+e.slice(o)}function P3(e,r,n){const o=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[o][1].end},f={...e[n][1].start};xB(p,-c),xB(f,c),l={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[o][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:c>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[o][1].end={...l.start},e[n][1].start={...s.end},u=[],e[o][1].end.offset-e[o][1].start.offset&&(u=ei(u,[["enter",e[o][1],r],["exit",e[o][1],r]])),u=ei(u,[["enter",a,r],["enter",l,r],["exit",l,r],["enter",i,r]]),u=ei(u,P3(r.parser.constructs.insideSpan.null,e.slice(o+1,n),r)),u=ei(u,[["exit",i,r],["enter",s,r],["exit",s,r],["exit",a,r]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=ei(u,[["enter",e[n][1],r],["exit",e[n][1],r]])):d=0,wa(e,o-1,n-o+3,u),n=o+u.length-d-2;break}}for(n=-1;++n0&&Yt(A)?Qt(e,C,"linePrefix",i+1)(A):C(A)}function C(A){return A===null||pt(A)?e.check(EB,x,T)(A):(e.enter("codeFlowValue"),_(A))}function _(A){return A===null||pt(A)?(e.exit("codeFlowValue"),C(A)):(e.consume(A),_)}function T(A){return e.exit("codeFenced"),r(A)}function R(A,D,N){let $=0;return M;function M(U){return A.enter("lineEnding"),A.consume(U),A.exit("lineEnding"),j}function j(U){return A.enter("codeFencedFence"),Yt(U)?Qt(A,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):L(U)}function L(U){return U===s?(A.enter("codeFencedFenceSequence"),Y(U)):N(U)}function Y(U){return U===s?($++,A.consume(U),Y):$>=l?(A.exit("codeFencedFenceSequence"),Yt(U)?Qt(A,O,"whitespace")(U):O(U)):N(U)}function O(U){return U===null||pt(U)?(A.exit("codeFencedFence"),D(U)):N(U)}}}function l5e(e,r,n){const o=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return o.parser.lazy[o.now().line]?n(l):r(l)}}const y8={name:"codeIndented",tokenize:c5e},s5e={partial:!0,tokenize:u5e};function c5e(e,r,n){const o=this;return a;function a(u){return e.enter("codeIndented"),Qt(e,i,"linePrefix",5)(u)}function i(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?c(u):pt(u)?e.attempt(s5e,l,c)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||pt(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function c(u){return e.exit("codeIndented"),r(u)}}function u5e(e,r,n){const o=this;return a;function a(l){return o.parser.lazy[o.now().line]?n(l):pt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):Qt(e,i,"linePrefix",5)(l)}function i(l){const s=o.events[o.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?r(l):pt(l)?a(l):n(l)}}const d5e={name:"codeText",previous:h5e,resolve:p5e,tokenize:f5e};function p5e(e){let r=e.length-4,n=3,o,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=n;++o=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return rthis.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,n,o){const a=n||0;this.setCursor(Math.trunc(r));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&j1(this.left,o),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),j1(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),j1(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r=4?r(l):e.interrupt(o.parser.constructs.flow,n,r)(l)}}function TB(e,r,n,o,a,i,l,s,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return p;function p(k){return k===60?(e.enter(o),e.enter(a),e.enter(i),e.consume(k),e.exit(i),f):k===null||k===32||k===41||R3(k)?n(k):(e.enter(o),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(k))}function f(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(o),r):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===62?(e.exit("chunkString"),e.exit(s),f(k)):k===null||k===60||pt(k)?n(k):(e.consume(k),k===92?b:g)}function b(k){return k===60||k===62||k===92?(e.consume(k),g):g(k)}function x(k){return!d&&(k===null||k===41||xr(k))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(o),r(k)):d999||g===null||g===91||g===93&&!c||g===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(o),r):pt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||pt(g)||s++>999?(e.exit("chunkString"),d(g)):(e.consume(g),c||(c=!Yt(g)),g===92?f:p)}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,p):p(g)}}function AB(e,r,n,o,a,i){let l;return s;function s(f){return f===34||f===39||f===40?(e.enter(o),e.enter(a),e.consume(f),e.exit(a),l=f===40?41:f,c):n(f)}function c(f){return f===l?(e.enter(a),e.consume(f),e.exit(a),e.exit(o),r):(e.enter(i),u(f))}function u(f){return f===l?(e.exit(i),c(l)):f===null?n(f):pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Qt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===l||f===null||pt(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?p:d)}function p(f){return f===l||f===92?(e.consume(f),d):d(f)}}function F1(e,r){let n;return o;function o(a){return pt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,o):Yt(a)?Qt(e,o,n?"linePrefix":"lineSuffix")(a):r(a)}}const k5e={name:"definition",tokenize:E5e},_5e={partial:!0,tokenize:S5e};function E5e(e,r,n){const o=this;let a;return i;function i(g){return e.enter("definition"),l(g)}function l(g){return RB.call(o,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return a=qi(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return xr(g)?F1(e,u)(g):u(g)}function u(g){return TB(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(_5e,p,p)(g)}function p(g){return Yt(g)?Qt(e,f,"whitespace")(g):f(g)}function f(g){return g===null||pt(g)?(e.exit("definition"),o.parser.defined.push(a),r(g)):n(g)}}function S5e(e,r,n){return o;function o(s){return xr(s)?F1(e,a)(s):n(s)}function a(s){return AB(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Yt(s)?Qt(e,l,"whitespace")(s):l(s)}function l(s){return s===null||pt(s)?r(s):n(s)}}const C5e={name:"hardBreakEscape",tokenize:T5e};function T5e(e,r,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return pt(i)?(e.exit("hardBreakEscape"),r(i)):n(i)}}const R5e={name:"headingAtx",resolve:A5e,tokenize:N5e};function A5e(e,r){let n=e.length-2,o=3,a,i;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(a={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},i={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},wa(e,o,n-o+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),e}function N5e(e,r,n){let o=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),l(d)}function l(d){return d===35&&o++<6?(e.consume(d),l):d===null||xr(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||pt(d)?(e.exit("atxHeading"),r(d)):Yt(d)?Qt(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||xr(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const D5e=["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"],NB=["pre","script","style","textarea"],P5e={concrete:!0,name:"htmlFlow",resolveTo:O5e,tokenize:I5e},$5e={partial:!0,tokenize:z5e},M5e={partial:!0,tokenize:L5e};function O5e(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function I5e(e,r,n){const o=this;let a,i,l,s,c;return u;function u(z){return d(z)}function d(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),p}function p(z){return z===33?(e.consume(z),f):z===47?(e.consume(z),i=!0,x):z===63?(e.consume(z),a=3,o.interrupt?r:F):Fo(z)?(e.consume(z),l=String.fromCharCode(z),w):n(z)}function f(z){return z===45?(e.consume(z),a=2,g):z===91?(e.consume(z),a=5,s=0,b):Fo(z)?(e.consume(z),a=4,o.interrupt?r:F):n(z)}function g(z){return z===45?(e.consume(z),o.interrupt?r:F):n(z)}function b(z){const W="CDATA[";return z===W.charCodeAt(s++)?(e.consume(z),s===W.length?o.interrupt?r:L:b):n(z)}function x(z){return Fo(z)?(e.consume(z),l=String.fromCharCode(z),w):n(z)}function w(z){if(z===null||z===47||z===62||xr(z)){const W=z===47,X=l.toLowerCase();return!W&&!i&&NB.includes(X)?(a=1,o.interrupt?r(z):L(z)):D5e.includes(l.toLowerCase())?(a=6,W?(e.consume(z),k):o.interrupt?r(z):L(z)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(z):i?C(z):_(z))}return z===45||Co(z)?(e.consume(z),l+=String.fromCharCode(z),w):n(z)}function k(z){return z===62?(e.consume(z),o.interrupt?r:L):n(z)}function C(z){return Yt(z)?(e.consume(z),C):M(z)}function _(z){return z===47?(e.consume(z),M):z===58||z===95||Fo(z)?(e.consume(z),T):Yt(z)?(e.consume(z),_):M(z)}function T(z){return z===45||z===46||z===58||z===95||Co(z)?(e.consume(z),T):R(z)}function R(z){return z===61?(e.consume(z),A):Yt(z)?(e.consume(z),R):_(z)}function A(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),c=z,D):Yt(z)?(e.consume(z),A):N(z)}function D(z){return z===c?(e.consume(z),c=null,$):z===null||pt(z)?n(z):(e.consume(z),D)}function N(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||xr(z)?R(z):(e.consume(z),N)}function $(z){return z===47||z===62||Yt(z)?_(z):n(z)}function M(z){return z===62?(e.consume(z),j):n(z)}function j(z){return z===null||pt(z)?L(z):Yt(z)?(e.consume(z),j):n(z)}function L(z){return z===45&&a===2?(e.consume(z),I):z===60&&a===1?(e.consume(z),q):z===62&&a===4?(e.consume(z),J):z===63&&a===3?(e.consume(z),F):z===93&&a===5?(e.consume(z),G):pt(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check($5e,Q,Y)(z)):z===null||pt(z)?(e.exit("htmlFlowData"),Y(z)):(e.consume(z),L)}function Y(z){return e.check(M5e,O,Q)(z)}function O(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),U}function U(z){return z===null||pt(z)?Y(z):(e.enter("htmlFlowData"),L(z))}function I(z){return z===45?(e.consume(z),F):L(z)}function q(z){return z===47?(e.consume(z),l="",V):L(z)}function V(z){if(z===62){const W=l.toLowerCase();return NB.includes(W)?(e.consume(z),J):L(z)}return Fo(z)&&l.length<8?(e.consume(z),l+=String.fromCharCode(z),V):L(z)}function G(z){return z===93?(e.consume(z),F):L(z)}function F(z){return z===62?(e.consume(z),J):z===45&&a===2?(e.consume(z),F):L(z)}function J(z){return z===null||pt(z)?(e.exit("htmlFlowData"),Q(z)):(e.consume(z),J)}function Q(z){return e.exit("htmlFlow"),r(z)}}function L5e(e,r,n){const o=this;return a;function a(l){return pt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return o.parser.lazy[o.now().line]?n(l):r(l)}}function z5e(e,r,n){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(B1,r,n)}}const B5e={name:"htmlText",tokenize:j5e};function j5e(e,r,n){const o=this;let a,i,l;return s;function s(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),c}function c(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),R):F===63?(e.consume(F),_):Fo(F)?(e.consume(F),N):n(F)}function u(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),i=0,b):Fo(F)?(e.consume(F),C):n(F)}function d(F){return F===45?(e.consume(F),g):n(F)}function p(F){return F===null?n(F):F===45?(e.consume(F),f):pt(F)?(l=p,q(F)):(e.consume(F),p)}function f(F){return F===45?(e.consume(F),g):p(F)}function g(F){return F===62?I(F):F===45?f(F):p(F)}function b(F){const J="CDATA[";return F===J.charCodeAt(i++)?(e.consume(F),i===J.length?x:b):n(F)}function x(F){return F===null?n(F):F===93?(e.consume(F),w):pt(F)?(l=x,q(F)):(e.consume(F),x)}function w(F){return F===93?(e.consume(F),k):x(F)}function k(F){return F===62?I(F):F===93?(e.consume(F),k):x(F)}function C(F){return F===null||F===62?I(F):pt(F)?(l=C,q(F)):(e.consume(F),C)}function _(F){return F===null?n(F):F===63?(e.consume(F),T):pt(F)?(l=_,q(F)):(e.consume(F),_)}function T(F){return F===62?I(F):_(F)}function R(F){return Fo(F)?(e.consume(F),A):n(F)}function A(F){return F===45||Co(F)?(e.consume(F),A):D(F)}function D(F){return pt(F)?(l=D,q(F)):Yt(F)?(e.consume(F),D):I(F)}function N(F){return F===45||Co(F)?(e.consume(F),N):F===47||F===62||xr(F)?$(F):n(F)}function $(F){return F===47?(e.consume(F),I):F===58||F===95||Fo(F)?(e.consume(F),M):pt(F)?(l=$,q(F)):Yt(F)?(e.consume(F),$):I(F)}function M(F){return F===45||F===46||F===58||F===95||Co(F)?(e.consume(F),M):j(F)}function j(F){return F===61?(e.consume(F),L):pt(F)?(l=j,q(F)):Yt(F)?(e.consume(F),j):$(F)}function L(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),a=F,Y):pt(F)?(l=L,q(F)):Yt(F)?(e.consume(F),L):(e.consume(F),O)}function Y(F){return F===a?(e.consume(F),a=void 0,U):F===null?n(F):pt(F)?(l=Y,q(F)):(e.consume(F),Y)}function O(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||xr(F)?$(F):(e.consume(F),O)}function U(F){return F===47||F===62||xr(F)?$(F):n(F)}function I(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),r):n(F)}function q(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),V}function V(F){return Yt(F)?Qt(e,G,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):G(F)}function G(F){return e.enter("htmlTextData"),l(F)}}const b8={name:"labelEnd",resolveAll:U5e,resolveTo:V5e,tokenize:Y5e},F5e={tokenize:W5e},H5e={tokenize:G5e},q5e={tokenize:X5e};function U5e(e){let r=-1;const n=[];for(;++r=3&&(u===null||pt(u))?(e.exit("thematicBreak"),r(u)):n(u)}function c(u){return u===a?(e.consume(u),o++,c):(e.exit("thematicBreakSequence"),Yt(u)?Qt(e,s,"whitespace")(u):s(u))}}const Ko={continuation:{tokenize:ake},exit:lke,name:"list",tokenize:oke},rke={partial:!0,tokenize:ske},nke={partial:!0,tokenize:ike};function oke(e,r,n){const o=this,a=o.events[o.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return s;function s(g){const b=o.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!o.containerState.marker||g===o.containerState.marker:i8(g)){if(o.containerState.type||(o.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check($3,n,u)(g):u(g);if(!o.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return i8(g)&&++l<10?(e.consume(g),c):(!o.interrupt||l<2)&&(o.containerState.marker?g===o.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||g,e.check(B1,o.interrupt?n:d,e.attempt(rke,f,p))}function d(g){return o.containerState.initialBlankLine=!0,i++,f(g)}function p(g){return Yt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),f):n(g)}function f(g){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(g)}}function ake(e,r,n){const o=this;return o.containerState._closeFlow=void 0,e.check(B1,a,i);function a(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Qt(e,r,"listItemIndent",o.containerState.size+1)(s)}function i(s){return o.containerState.furtherBlankLines||!Yt(s)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,l(s)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(nke,r,l)(s))}function l(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,Qt(e,e.attempt(Ko,r,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function ike(e,r,n){const o=this;return Qt(e,a,"listItemIndent",o.containerState.size+1);function a(i){const l=o.events[o.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===o.containerState.size?r(i):n(i)}}function lke(e){e.exit(this.containerState.type)}function ske(e,r,n){const o=this;return Qt(e,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const l=o.events[o.events.length-1];return!Yt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):n(i)}}const DB={name:"setextUnderline",resolveTo:cke,tokenize:uke};function cke(e,r){let n=e.length,o,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",l,r]),e.splice(i+1,0,["exit",e[o][1],r]),e[o][1].end={...e[i][1].end}):e[o][1]=l,e.push(["exit",l,r]),e}function uke(e,r,n){const o=this;let a;return i;function i(u){let d=o.events.length,p;for(;d--;)if(o.events[d][1].type!=="lineEnding"&&o.events[d][1].type!=="linePrefix"&&o.events[d][1].type!=="content"){p=o.events[d][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||p)?(e.enter("setextHeadingLine"),a=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Yt(u)?Qt(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||pt(u)?(e.exit("setextHeadingLine"),r(u)):n(u)}}const dke={tokenize:vke,partial:!0};function pke(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gke,continuation:{tokenize:yke},exit:bke}},text:{91:{name:"gfmFootnoteCall",tokenize:mke},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hke,resolveTo:fke}}}}function hke(e,r,n){const o=this;let a=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let l;for(;a--;){const c=o.events[a][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!l||!l._balanced)return n(c);const u=qi(o.sliceSerialize({start:l.end,end:o.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),r(c))}}function fke(e,r){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 o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",o,r],e[n+3],e[n+4],["enter",a,r],["exit",a,r],["enter",i,r],["enter",l,r],["exit",l,r],["exit",i,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(n,e.length-n+1,...s),e}function mke(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,l;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),c}function c(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(p){if(i>999||p===93&&!l||p===null||p===91||xr(p))return n(p);if(p===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(qi(o.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):n(p)}return xr(p)||(l=!0),i++,e.consume(p),p===92?d:u}function d(p){return p===91||p===92||p===93?(e.consume(p),i++,u):u(p)}}function gke(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,l=0,s;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(b)}function d(b){if(l>999||b===93&&!s||b===null||b===91||xr(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return i=qi(o.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return xr(b)||(s=!0),l++,e.consume(b),b===92?p:d}function p(b){return b===91||b===92||b===93?(e.consume(b),l++,d):d(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),Qt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return r(b)}}function yke(e,r,n){return e.check(B1,r,e.attempt(dke,r,n))}function bke(e){e.exit("gfmFootnoteDefinition")}function vke(e,r,n){const o=this;return Qt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const l=o.events[o.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?r(i):n(i)}}function xke(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function a(l,s){let c=-1;for(;++c1?c(b):(l.consume(b),p++,g);if(p<2&&!n)return c(b);const w=l.exit("strikethroughSequenceTemporary"),k=Uh(b);return w._open=!k||k===2&&!!x,w._close=!x||x===2&&!!k,s(b)}}}class wke{constructor(){this.map=[]}add(r,n,o){kke(this,r,n,o)}consume(r){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(r.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),r.length=this.map[n][0];o.push(r.slice()),r.length=0;let a=o.pop();for(;a;){for(const i of a)r.push(i);a=o.pop()}this.map.length=0}}function kke(e,r,n,o){let a=0;if(!(n===0&&o.length===0)){for(;a-1;){const O=o.events[j][1].type;if(O==="lineEnding"||O==="linePrefix")j--;else break}const L=j>-1?o.events[j][1].type:null,Y=L==="tableHead"||L==="tableRow"?A:c;return Y===A&&o.parser.lazy[o.now().line]?n(M):Y(M)}function c(M){return e.enter("tableHead"),e.enter("tableRow"),u(M)}function u(M){return M===124||(l=!0,i+=1),d(M)}function d(M){return M===null?n(M):pt(M)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),g):n(M):Yt(M)?Qt(e,d,"whitespace")(M):(i+=1,l&&(l=!1,a+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),l=!0,d):(e.enter("data"),p(M)))}function p(M){return M===null||M===124||xr(M)?(e.exit("data"),d(M)):(e.consume(M),M===92?f:p)}function f(M){return M===92||M===124?(e.consume(M),p):p(M)}function g(M){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(M):(e.enter("tableDelimiterRow"),l=!1,Yt(M)?Qt(e,b,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):b(M))}function b(M){return M===45||M===58?w(M):M===124?(l=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),x):R(M)}function x(M){return Yt(M)?Qt(e,w,"whitespace")(M):w(M)}function w(M){return M===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),k):M===45?(i+=1,k(M)):M===null||pt(M)?T(M):R(M)}function k(M){return M===45?(e.enter("tableDelimiterFiller"),C(M)):R(M)}function C(M){return M===45?(e.consume(M),C):M===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(M))}function _(M){return Yt(M)?Qt(e,T,"whitespace")(M):T(M)}function T(M){return M===124?b(M):M===null||pt(M)?!l||a!==i?R(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(M)):R(M)}function R(M){return n(M)}function A(M){return e.enter("tableRow"),D(M)}function D(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),D):M===null||pt(M)?(e.exit("tableRow"),r(M)):Yt(M)?Qt(e,D,"whitespace")(M):(e.enter("data"),N(M))}function N(M){return M===null||M===124||xr(M)?(e.exit("data"),D(M)):(e.consume(M),M===92?$:N)}function $(M){return M===92||M===124?(e.consume(M),N):N(M)}}function Cke(e,r){let n=-1,o=!0,a=0,i=[0,0,0,0],l=[0,0,0,0],s=!1,c=0,u,d,p;const f=new wke;for(;++nn[2]+1){const b=n[2]+1,x=n[3]-n[2]-1;e.add(b,x,[])}}e.add(n[3]+1,0,[["exit",p,r]])}return a!==void 0&&(i.end=Object.assign({},Yh(r.events,a)),e.add(a,0,[["exit",i,r]]),i=void 0),i}function PB(e,r,n,o,a){const i=[],l=Yh(r.events,n);a&&(a.end=Object.assign({},l),i.push(["exit",a,r])),o.end=Object.assign({},l),i.push(["exit",o,r]),e.add(n+1,0,i)}function Yh(e,r){const n=e[r],o=n[0]==="enter"?"start":"end";return n[1][o]}const Tke={name:"tasklistCheck",tokenize:Ake};function Rke(){return{text:{91:Tke}}}function Ake(e,r,n){const o=this;return a;function a(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return xr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),l):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),l):n(c)}function l(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return pt(c)?r(c):Yt(c)?e.check({tokenize:Nke},r,n)(c):n(c)}}function Nke(e,r,n){return Qt(e,o,"whitespace");function o(a){return a===null?n(a):r(a)}}function Dke(e){return dB([F4e(),pke(),xke(e),Eke(),Rke()])}const Pke={};function $ke(e){const r=this,n=e||Pke,o=r.data(),a=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),l=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);a.push(Dke(n)),i.push(O4e()),l.push(I4e(n))}const Mke={tokenize:Oke};function Oke(e){const r=e.attempt(this.parser.constructs.contentInitial,o,a);let n;return r;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Qt(e,r,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return pt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),l)}}const Ike={tokenize:Lke},$B={tokenize:zke};function Lke(e){const r=this,n=[];let o=0,a,i,l;return s;function s(_){if(ol))return;const D=r.events.length;let N=D,$,M;for(;N--;)if(r.events[N][0]==="exit"&&r.events[N][1].type==="chunkFlow"){if($){M=r.events[N][1].end;break}$=!0}for(k(o),A=D;A_;){const R=n[T];r.containerState=R[1],R[0].exit.call(r,e)}n.length=_}function C(){a.write([null]),i=void 0,a=void 0,r.containerState._closeFlow=void 0}}function zke(e,r,n){return Qt(e,e.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Bke={tokenize:jke};function jke(e){const r=this,n=e.attempt(B1,o,e.attempt(this.parser.constructs.flowInitial,a,Qt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(y5e,a)),"linePrefix")));return n;function o(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),r.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r.currentConstruct=void 0,n}}const Fke={resolveAll:OB()},Hke=MB("string"),qke=MB("text");function MB(e){return{resolveAll:OB(e==="text"?Uke:void 0),tokenize:r};function r(n){const o=this,a=this.parser.constructs[e],i=n.attempt(a,l,s);return l;function l(d){return u(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const p=a[d];let f=-1;if(p)for(;++f-1){const s=l[0];typeof s=="string"?l[0]=s.slice(o):l.shift()}i>0&&l.push(e[a].slice(0,i))}return l}function Gke(e,r){let n=-1;const o=[];let a;for(;++n0){const Wr=rt.tokenStack[rt.tokenStack.length-1];(Wr[1]||Hj).call(rt,void 0,Wr[0])}for(we.position={start:Zc(_e.length>0?_e[0][1].start:{line:1,column:1,offset:0}),end:Zc(_e.length>0?_e[_e.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(r,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(r,u),e.applyData(r,u)}function l_e(e,r){const n={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function s_e(e,r){if(e.options.allowDangerousHtml){const n={type:"raw",value:r.value};return e.patch(r,n),e.applyData(r,n)}}function Uj(e,r){const n=r.referenceType;let o="]";if(n==="collapsed"?o+="[]":n==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const a=e.all(r),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=o:a.push({type:"text",value:o}),a}function c_e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return Uj(e,r);const a={src:Vh(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function u_e(e,r){const n={src:Vh(r.url)};r.alt!==null&&r.alt!==void 0&&(n.alt=r.alt),r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(r,o),e.applyData(r,o)}function d_e(e,r){const n={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,n);const o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(r,o),e.applyData(r,o)}function p_e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return Uj(e,r);const a={href:Vh(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function h_e(e,r){const n={href:Vh(r.url)};r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"a",properties:n,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function f_e(e,r,n){const o=e.all(r),a=n?m_e(n):qj(r),i={},l=[];if(typeof r.checked=="boolean"){const d=o[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},o.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s0){const Wr=rt.tokenStack[rt.tokenStack.length-1];(Wr[1]||HB).call(rt,void 0,Wr[0])}for(we.position={start:Zc(_e.length>0?_e[0][1].start:{line:1,column:1,offset:0}),end:Zc(_e.length>0?_e[_e.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(r,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(r,u),e.applyData(r,u)}function l6e(e,r){const n={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function s6e(e,r){if(e.options.allowDangerousHtml){const n={type:"raw",value:r.value};return e.patch(r,n),e.applyData(r,n)}}function qB(e,r){const n=r.referenceType;let o="]";if(n==="collapsed"?o+="[]":n==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const a=e.all(r),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=o:a.push({type:"text",value:o}),a}function c6e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return qB(e,r);const a={src:Vh(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function u6e(e,r){const n={src:Vh(r.url)};r.alt!==null&&r.alt!==void 0&&(n.alt=r.alt),r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(r,o),e.applyData(r,o)}function d6e(e,r){const n={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,n);const o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(r,o),e.applyData(r,o)}function p6e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return qB(e,r);const a={href:Vh(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function h6e(e,r){const n={href:Vh(r.url)};r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"a",properties:n,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function f6e(e,r,n){const o=e.all(r),a=n?m6e(n):UB(r),i={},l=[];if(typeof r.checked=="boolean"){const d=o[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},o.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s1}function g_e(e,r){const n={},o=e.all(r);let a=-1;for(typeof r.start=="number"&&r.start!==1&&(n.start=r.start);++a0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=zs(r.children[1]),c=k3(r.children[r.children.length-1]);s&&c&&(l.position={start:s,end:c}),a.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(r,i),e.applyData(r,i)}function w_e(e,r,n){const o=n?n.children:void 0,i=(o?o.indexOf(r):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,s=l?l.length:r.children.length;let c=-1;const u=[];for(;++c0,!0),o[0]),a=o.index+o[0].length,o=n.exec(r);return i.push(Wj(r.slice(a),a>0,!1)),i.join("")}function Wj(e,r,n){let o=0,a=e.length;if(r){let i=e.codePointAt(o);for(;i===Vj||i===Yj;)o++,i=e.codePointAt(o)}if(n){let i=e.codePointAt(a-1);for(;i===Vj||i===Yj;)a--,i=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function E_e(e,r){const n={type:"text",value:__e(String(r.value))};return e.patch(r,n),e.applyData(r,n)}function S_e(e,r){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,n),e.applyData(r,n)}const C_e={blockquote:t_e,break:r_e,code:n_e,delete:o_e,emphasis:a_e,footnoteReference:i_e,heading:l_e,html:s_e,imageReference:c_e,image:u_e,inlineCode:d_e,linkReference:p_e,link:h_e,listItem:f_e,list:g_e,paragraph:y_e,root:b_e,strong:v_e,table:x_e,tableCell:k_e,tableRow:w_e,text:E_e,thematicBreak:S_e,toml:M3,yaml:M3,definition:M3,footnoteDefinition:M3};function M3(){}function T_e(e,r){const n=[{type:"text",value:"↩"}];return r>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),n}function R_e(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function A_e(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||T_e,o=e.options.footnoteBackLabel||R_e,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c0&&b.push({type:"text",value:" "});let C=typeof n=="string"?n:n(c,g);typeof C=="string"&&(C={type:"text",value:C}),b.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+f+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(c,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else d.push(...b);const k={type:"element",tagName:"li",properties:{id:r+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,k),s.push(k)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xd(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
+`});const u={type:"element",tagName:"li",properties:i,children:l};return e.patch(r,u),e.applyData(r,u)}function m6e(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const n=e.children;let o=-1;for(;!r&&++o1}function g6e(e,r){const n={},o=e.all(r);let a=-1;for(typeof r.start=="number"&&r.start!==1&&(n.start=r.start);++a0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=zs(r.children[1]),c=k3(r.children[r.children.length-1]);s&&c&&(l.position={start:s,end:c}),a.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(r,i),e.applyData(r,i)}function w6e(e,r,n){const o=n?n.children:void 0,i=(o?o.indexOf(r):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,s=l?l.length:r.children.length;let c=-1;const u=[];for(;++c0,!0),o[0]),a=o.index+o[0].length,o=n.exec(r);return i.push(WB(r.slice(a),a>0,!1)),i.join("")}function WB(e,r,n){let o=0,a=e.length;if(r){let i=e.codePointAt(o);for(;i===VB||i===YB;)o++,i=e.codePointAt(o)}if(n){let i=e.codePointAt(a-1);for(;i===VB||i===YB;)a--,i=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function E6e(e,r){const n={type:"text",value:_6e(String(r.value))};return e.patch(r,n),e.applyData(r,n)}function S6e(e,r){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,n),e.applyData(r,n)}const C6e={blockquote:t6e,break:r6e,code:n6e,delete:o6e,emphasis:a6e,footnoteReference:i6e,heading:l6e,html:s6e,imageReference:c6e,image:u6e,inlineCode:d6e,linkReference:p6e,link:h6e,listItem:f6e,list:g6e,paragraph:y6e,root:b6e,strong:v6e,table:x6e,tableCell:k6e,tableRow:w6e,text:E6e,thematicBreak:S6e,toml:O3,yaml:O3,definition:O3,footnoteDefinition:O3};function O3(){}function T6e(e,r){const n=[{type:"text",value:"↩"}];return r>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),n}function R6e(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function A6e(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||T6e,o=e.options.footnoteBackLabel||R6e,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c0&&b.push({type:"text",value:" "});let C=typeof n=="string"?n:n(c,g);typeof C=="string"&&(C={type:"text",value:C}),b.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+f+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(c,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else d.push(...b);const k={type:"element",tagName:"li",properties:{id:r+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,k),s.push(k)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xd(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
-`}]}}const wE={}.hasOwnProperty,N_e={};function D_e(e,r){const n=r||N_e,o=new Map,a=new Map,i=new Map,l={...C_e,...n.handlers},s={all:u,applyData:P_e,definitionById:o,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:l,one:c,options:n,patch:$_e,wrap:M_e};return eE(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?o:a,f=String(d.identifier).toUpperCase();p.has(f)||p.set(f,d)}}),s;function c(d,p){const f=d.type,g=s.handlers[f];if(wE.call(s.handlers,f)&&g)return g(s,d,p);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:x,...w}=d,k=xd(w);return k.children=s.all(d),k}return xd(d)}return(s.options.unknownHandler||O_e)(s,d,p)}function u(d){const p=[];if("children"in d){const f=d.children;let g=-1;for(;++g0&&n.push({type:"text",value:`
-`}),n}function Gj(e){let r=0,n=e.charCodeAt(r);for(;n===9||n===32;)r++,n=e.charCodeAt(r);return e.slice(r)}function Xj(e,r){const n=D_e(e,r),o=n.one(e,void 0),a=A_e(n),i=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
-`},a),i}function I_e(e,r){return e&&"run"in e?async function(n,o){const a=Xj(n,{file:o,...r});await e.run(a,o)}:function(n,o){return Xj(n,{file:o,...e||r})}}function Kj(e){if(e)throw e}var kE,Zj;function L_e(){if(Zj)return kE;Zj=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):r.call(u)==="[object Array]"},i=function(u){if(!u||r.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var f;for(f in u);return typeof f>"u"||e.call(u,f)},l=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},s=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(o)return o(u,d).value}else return;return u[d]};return kE=function c(){var u,d,p,f,g,b,x=arguments[0],w=1,k=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});wl.length;let c;s&&l.push(a);try{c=e.apply(this,l)}catch(u){const d=u;if(s&&n)throw d;return a(d)}s||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(l,...s){n||(n=!0,r(l,...s))}function i(l){a(null,l)}}let Zo=class extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(l=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=H1(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};Zo.prototype.file="",Zo.prototype.name="",Zo.prototype.reason="",Zo.prototype.message="",Zo.prototype.stack="",Zo.prototype.column=void 0,Zo.prototype.line=void 0,Zo.prototype.ancestors=void 0,Zo.prototype.cause=void 0,Zo.prototype.fatal=void 0,Zo.prototype.place=void 0,Zo.prototype.ruleId=void 0,Zo.prototype.source=void 0;const Wl={basename:F_e,dirname:H_e,extname:U_e,join:q_e,sep:"/"};function F_e(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');U1(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let l=-1,s=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1),s>-1&&(e.codePointAt(a)===r.codePointAt(s--)?s<0&&(o=a):(s=-1,o=l));return n===o?o=l:o<0&&(o=e.length),e.slice(n,o)}function H_e(e){if(U1(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function U_e(e){U1(e);let r=e.length,n=-1,o=0,a=-1,i=0,l;for(;r--;){const s=e.codePointAt(r);if(s===47){if(l){o=r+1;break}continue}n<0&&(l=!0,n=r+1),s===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function q_e(...e){let r=-1,n;for(;++r0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function Y_e(e,r){let n="",o=0,a=-1,i=0,l=-1,s,c;for(;++l<=e.length;){if(l2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=l,i=0;continue}}else if(n.length>0){n="",o=0,a=l,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),o=l-a-1;a=l,i=0}else s===46&&i>-1?i++:i=-1}return n}function U1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const W_e={cwd:G_e};function G_e(){return"/"}function SE(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function X_e(e){if(typeof e=="string")e=new URL(e);else if(!SE(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return K_e(e)}function K_e(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n0){let[g,...b]=d;const x=o[f][1];EE(x)&&EE(g)&&(g=_E(!0,x,g)),o[f]=[u,g,...b]}}}};const r6e=new t6e().freeze();function AE(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function NE(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function DE(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jj(e){if(!EE(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function eB(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function I3(e){return n6e(e)?e:new Z_e(e)}function n6e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o6e(e){return typeof e=="string"||a6e(e)}function a6e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function i6e(){return r6e().use(e_e).use(P5e).use(I_e,{allowDangerousHtml:!0,clobberPrefix:"",tableCellPadding:!1,tight:!0}).use(zxe).use(Gxe).use(Qwe,{closeSelfClosing:!0,tightSelfClosing:!0})}function l6e(e){return String(i6e().processSync(e.trim())).trim()}function s6e(e){return D3(Bj(e),{includeHtml:!1,includeImageAlt:!1})}function c6e(...e){return ba(u6e,e)}function u6e(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}function q1(e){return c6e(e,r=>r===void 0)}const d6e=Symbol.for("text"),p6e=Symbol.for("html"),Gl="";class Kt{static _cache=new WeakMap;static memoize(r,n,o){return cr(r,n,()=>Kt.from(o))}static from(r){if(r==null||r===Kt.EMPTY)return Kt.EMPTY;if(r instanceof Kt)return r;if(typeof r=="string")return r.trim()===Gl?Kt.EMPTY:new Kt({txt:r});if("isEmpty"in r&&r.isEmpty||"md"in r&&r.md.trim()===Gl||"txt"in r&&r.txt.trim()===Gl)return Kt.EMPTY;const n=r,o=Kt._cache.get(n);if(o)return o;const a=new Kt(n);return Kt._cache.set(n,a),a}static EMPTY=new class extends Kt{isEmpty=!0;nonEmpty=!1;isMarkdown=!1;$source=null;constructor(){super({txt:Gl})}get text(){return null}get md(){return null}get html(){return null}};$source;isEmpty;nonEmpty;isMarkdown;constructor(r){this.isMarkdown=!1,typeof r=="string"?(this.$source={txt:r},this.isEmpty=r.trim()===Gl):(this.$source=r,this.isEmpty=!0,"md"in r?(this.isEmpty=r.md===Gl,this.isMarkdown=!0):this.isEmpty=r.txt===Gl),this.nonEmpty=!this.isEmpty}get text(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;return"txt"in r?r.txt:cr(this,d6e,()=>s6e(r.md))}get md(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;if("md"in r)return r.md;if("txt"in r)return r.txt;Xa(r)}get html(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;return"txt"in r?r.txt:cr(this,p6e,()=>l6e(r.md))}equals(r){return this===r?!0:r instanceof Kt?this.isEmpty&&r.isEmpty?!0:this.isEmpty!==r.isEmpty||this.isMarkdown!==r.isMarkdown?!1:this.isMarkdown?this.$source?.md===r.$source?.md:this.$source?.txt===r.$source?.txt:!1}}function tB(e){return r=>!e(r)}function h6e(...e){return ba(f6e,e)}const f6e=(e,r)=>r.every(n=>n(e));function m6e(...e){return ba(g6e,e)}const g6e=(e,r)=>r.some(n=>n(e));function y6e(e){return e==null}function rB(e,r){return e[V1]===r}const V1="_stage",Y1="_type";function b6e(e){return Is(e.kind)&&!Is(e.element)}function v6e(e){return"tag"in e}function x6e(e){return"kind"in e}function w6e(e){return"participant"in e}function k6e(e){return"not"in e}function _6e(e){return"and"in e}function E6e(e){return"or"in e}function Ad(e){switch(!0){case w6e(e):{const r=e.participant,n=Ad(e.operator);return S6e(r,n)}case v6e(e):{if(qc(e.tag)||"eq"in e.tag){const n=qc(e.tag)?e.tag:e.tag.eq;return o=>Array.isArray(o.tags)&&o.tags.includes(n)}const r=e.tag.neq;return n=>!Array.isArray(n.tags)||!n.tags.includes(r)}case x6e(e):{if(qc(e.kind)||"eq"in e.kind){const n=qc(e.kind)?e.kind:e.kind.eq;return o=>o.kind===n}const r=e.kind.neq;return n=>y6e(n.kind)||n.kind!==r}case k6e(e):{const r=Ad(e.not);return tB(r)}case _6e(e):{const r=e.and.map(Ad);return h6e(r)}case E6e(e):{const r=e.or.map(Ad);return m6e(r)}default:Xa(e)}}function S6e(e,r){return n=>{if(!n.source||!n.target)return!1;switch(e){case"source":return r(n.source);case"target":return r(n.target)}}}var W1;(e=>{function r(c){return"model"in c&&!("project"in c)}e.isElementRef=r;function n(c){return"project"in c&&"model"in c}e.isImportRef=n;function o(c){if(qc(c))throw new Error(`Expected FqnRef, got: "${c}"`);if(n(c))return jI(c.project,c.model);if(r(c))return c.model;throw new Error("Expected FqnRef.ModelRef or FqnRef.ImportRef")}e.flatten=o;function a(c){return r(c)||n(c)}e.isModelRef=a;function i(c){return"deployment"in c&&"element"in c}e.isInsideInstanceRef=i;function l(c){return"deployment"in c&&!("element"in c)}e.isDeploymentElementRef=l;function s(c){return l(c)||i(c)}e.isDeploymentRef=s})(W1||(W1={}));function $E(e){return v1(e)&&e.includes(".")?e.slice(0,e.indexOf(".")+1):null}var Qc;(e=>{function r({x:s,y:c,width:u,height:d}){return{x:s+u/2,y:c+d/2}}e.center=r;function n(s){const{x1:c,y1:u,x2:d,y2:p}=PE.fromPoints(s);return{x:c,y:u,width:d-c,height:p-u}}e.fromPoints=n;function o(...s){if(nt(_h(s,1),"No boxes provided"),s.length===1)return s[0];let c=1/0,u=1/0,d=-1/0,p=-1/0;for(const f of s)c=Math.min(c,f.x),u=Math.min(u,f.y),d=Math.max(d,f.x+f.width),p=Math.max(p,f.y+f.height);return{x:c,y:u,width:d-c,height:p-u}}e.merge=o;function a(s){return{x1:s.x,y1:s.y,x2:s.x+s.width,y2:s.y+s.height}}e.toRectBox=a;function i(s,c){return c===0?s:{x:s.x-c,y:s.y-c,width:s.width+c*2,height:s.height+c*2}}e.expand=i;function l(s,c){return c===0?s:{x:s.x+c,y:s.y+c,width:s.width-c*2,height:s.height-c*2}}e.shrink=l})(Qc||(Qc={}));var PE;(e=>{function r({x1:i,y1:l,x2:s,y2:c}){return{x:(i+s)/2,y:(l+c)/2}}e.center=r;function n(i){nt(i.length>0,"At least one point is required");let l=1/0,s=1/0,c=-1/0,u=-1/0;for(const[d,p]of i)l=Math.min(l,d),s=Math.min(s,p),c=Math.max(c,d),u=Math.max(u,p);return{x1:l,y1:s,x2:c,y2:u}}e.fromPoints=n;function o(...i){nt(i.length>0,"No boxes provided");let l=1/0,s=1/0,c=-1/0,u=-1/0;for(const d of i)l=Math.min(l,d.x1),s=Math.min(s,d.y1),c=Math.max(c,d.x2),u=Math.max(u,d.y2);return{x1:l,y1:s,x2:c,y2:u}}e.merge=o;function a(i){return{x:i.x1,y:i.y1,width:i.x2-i.x1,height:i.y2-i.y1}}e.toBBox=a})(PE||(PE={}));function nB(e){const r=typeof e=="string"?e:e.color;return r.startsWith("#")||r.startsWith("rgb")}const oB={done:!1,hasNext:!1};function G1(e,...r){let n=e,o=r.map(i=>"lazy"in i?C6e(i):void 0),a=0;for(;ae.map(r),A6e=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function N6e(e,r,n){let o=e.get(r);return o||(o=n(r),e.set(r,o)),o}var OE={},lB;function D6e(){return lB||(lB=1,(function(e){e.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.");var r=new Set,n=1/0,o=null,a,i,l=arguments.length;for(i=0;in.size)return!1;for(;a=o.next(),!a.done;)if(!n.has(a.value))return!1;return!0},e.isSuperset=function(r,n){return e.isSubset(n,r)},e.add=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.add(a.value)},e.subtract=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.delete(a.value)},e.intersect=function(r,n){for(var o=r.values(),a;a=o.next(),!a.done;)n.has(a.value)||r.delete(a.value)},e.disjunct=function(r,n){for(var o=r.values(),a,i=[];a=o.next(),!a.done;)n.has(a.value)&&i.push(a.value);for(o=n.values();a=o.next(),!a.done;)r.has(a.value)||r.add(a.value);for(var l=0,s=i.length;ln.size&&(o=r,r=n,n=o),r.size===0)return 0;if(r===n)return r.size;for(var a=r.values(),i,l=0;i=a.next(),!i.done;)n.has(i.value)&&l++;return l},e.unionSize=function(r,n){var o=e.intersectionSize(r,n);return r.size+n.size-o},e.jaccard=function(r,n){var o=e.intersectionSize(r,n);if(o===0)return 0;var a=r.size+n.size-o;return o/a},e.overlap=function(r,n){var o=e.intersectionSize(r,n);return o===0?0:o/Math.min(r.size,n.size)}})(OE)),OE}var $6e=D6e();function ME(...e){let r=new Set;for(const n of e)for(const o of n)r.add(o);return r}function Wh(e,...r){let n=new Set;if(e.size===0)return n;let o=_h(r,2)?$6e.intersection(...r):r[0];if(o.size===0)return n;for(const a of e)o.has(a)&&n.add(a);return n}function IE(e,r){if(e.size===0)return new Set;if(r.size===0)return new Set(e);let n=new Set;for(const o of e)r.has(o)||n.add(o);return n}function P6e(e,r){return e.size===r.size&&[...e].every(n=>r.has(n))}function O6e(e){let r=5381;const n=e.length;nt(n>0,"stringHash: empty string");for(let o=0;o>>0).toString(36)}const L3=e=>typeof e=="function";function Nd(e,r){const n=r??e;nt(L3(n));function*o(a){for(const i of a)n(i)&&(yield i)}return r?o(e):o}function X1(e,r){const n=r??e;nt(L3(n));function o(a){for(const i of a)if(n(i))return i}return r?o(e):o}function sB(e){return e?cB(e):cB}function cB(e){for(const r of e)return r}function M6e(e,r){const n=e;nt(L3(n));function*o(a){for(const i of a)yield n(i)}return o}function K1(e){return e?Array.from(e):r=>Array.from(r)}function I6e(e){return e?new Set(e):r=>new Set(r)}function L6e(e,r){const n=r??e;nt(L3(n));function o(a){for(const i of a)if(n(i))return!0;return!1}return r?o(e):o}function z6e(e,r){const n=e;nt(n>=0,"Count must be a non-negative number");function*o(a){let i=0;for(const l of a){if(i>=n)break;yield l,i++}}return a=>o(a)}function j6e(e,r){let n=Math.ceil(e),o=Math.floor(r);if(o{setTimeout(()=>{n(B6e)},r??100)})}function z3(e){const r=Vc([...e]),n=new Set(r),o=new Map(r.map(l=>[l._literalId,l])),a=new so(()=>null),i=r.reduce((l,s,c,u)=>(l.set(s,u.slice(c+1).filter($I(s)).map(d=>(n.delete(d),d)).reduce((d,p)=>(d.some(Un(p))||(d.push(p),a.set(p,s)),d),[])),l),new so(()=>[]));return{sorted:r,byId:l=>mt(o.get(l),`Element not found by id: ${l}`),root:n,parent:l=>a.get(l),children:l=>i.get(l),flatten:()=>new Set([...n,...r.reduce((l,s)=>{const c=i.get(s);return c.length===0?(l.push(s),l):(c.length>1&&l.push(...c),l)},[])])}}const LE=(e,r)=>e.size>2&&r.size!==e.size?new Set(Vc([...z3(e).flatten(),...r])):e.size>1?new Set(Vc([...e])):e;function uB(e,r,n){const o=c=>r.has(c);let a=new Set([e]);const i={incomers:new Set,subjects:new Set([e]),outgoers:new Set};let l=new Set(n.incoming.flatMap(c=>{if(i.subjects.add(c.target),i.incomers.add(c.source),a.add(c.target),c.target!==e){let p=c.target.parent;for(;p&&p!==e;)a.add(p),p=p.parent}let u=c.source;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d})),s=new Set(n.outgoing.flatMap(c=>{if(i.subjects.add(c.source),i.outgoers.add(c.target),a.add(c.source),c.source!==e){let p=c.source.parent;for(;p&&p!==e;)a.add(p),p=p.parent}let u=c.target;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d}));return{incomers:LE(l,i.incomers),incoming:new Set(n.incoming),subjects:LE(a,i.subjects),outgoing:new Set(n.outgoing),outgoers:LE(s,i.outgoers)}}function dB(e,r,n,o="global"){const a=n?r.findView(n):null;if(o==="view")return nt(a,'Scope view id is required when scope is "view"'),H6e(e,a,r);const i=r.element(e),l=I6e(i.ascendingSiblings());return uB(i,l,{incoming:[...i.incoming()],outgoing:[...i.outgoing()]})}function H6e(e,r,n){const o=n.element(e);let a={incoming:K1(Nd(o.incoming(),s=>r.includesRelation(s.id))),outgoing:K1(Nd(o.outgoing(),s=>r.includesRelation(s.id)))};const i=$I(o),l=new Set([...o.ascendingSiblings(),...G1(r.elements(),M6e(s=>s.element),Nd(s=>s!==o&&i(s)))]);return uB(o,l,a)}var pB;(e=>{e.isInside=r=>n=>Un(r,n.source.id)&&Un(r,n.target.id),e.isDirectedBetween=(r,n)=>o=>(o.source.id===r||Un(r,o.source.id))&&(o.target.id===n||Un(n,o.target.id)),e.isAnyBetween=(r,n)=>{const o=(0,e.isDirectedBetween)(r,n),a=(0,e.isDirectedBetween)(n,r);return i=>o(i)||a(i)},e.isIncoming=r=>n=>(n.target.id===r||Un(r,n.target.id))&&!Un(r,n.source.id),e.isOutgoing=r=>n=>(n.source.id===r||Un(r,n.source.id))&&!Un(r,n.target.id),e.isAnyInOut=r=>{const n=(0,e.isIncoming)(r),o=(0,e.isOutgoing)(r);return a=>n(a)||o(a)}})(pB||(pB={}));const U6e=Symbol.for("nodejs.util.inspect.custom");function q6e(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return G1(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>G1(a,o),o)}throw Error("Wrong number of arguments")}function Gh(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function V6e(...e){return ba(Y6e,e)}const Y6e=e=>e.length===1?e[0]:void 0;function zE(...e){return q6e(W6e,e)}function W6e(){let e=new Set;return r=>e.has(r)?oB:(e.add(r),{done:!1,hasNext:!0,next:r})}class hB{get style(){return cr(this,"style",()=>q1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$node.style}))}get name(){return g1(this.id)}get shape(){return this.style.shape}get color(){return this.style.color}get summary(){return Kt.memoize(this,"summary",i3(this.$node))}get description(){return Kt.memoize(this,"description",l3(this.$node))}get technology(){return this.$node.technology??null}get links(){return this.$node.links??[]}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b1(this.id,r.id);return n?this.$model.node(n):null}siblings(){return this.$model.siblings(this)}isSibling(r){return this.parent===r.parent}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}outgoing(r="all"){return this.$model.outgoing(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}*views(){for(const r of this.$model.views())r._type==="deployment"&&r.includesDeployment(this.id)&&(yield r)}isDeploymentNode(){return!1}isInstance(){return!1}get allOutgoing(){return cr(this,Symbol.for("allOutgoing"),()=>Jc.from(new Set(this.outgoingModelRelationships()),new Set(this.outgoing())))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>Jc.from(new Set(this.incomingModelRelationships()),new Set(this.incoming())))}hasMetadata(){return!!this.$node.metadata&&!Gh(this.$node.metadata)}getMetadata(r){return r?this.$node.metadata?.[r]:this.$node.metadata??{}}isTagged(r){return this.tags.includes(r)}}class fB extends hB{constructor(r,n){super(),this.$model=r,this.$node=n,this.id=n.id,this._literalId=n.id,this.title=n.title,this.hierarchyLevel=o3(n.id)}id;_literalId;title;hierarchyLevel;get parent(){return this.$model.parent(this)}get kind(){return this.$node.kind}get tags(){return cr(this,Symbol.for("tags"),()=>zE([...this.$node.tags??[],...this.$model.$model.specification.deployments[this.kind]?.tags??[]]))}children(){return this.$model.children(this)}descendants(r="desc"){return this.$model.descendants(this,r)}isDeploymentNode(){return!0}*instances(){for(const r of this.descendants("desc"))r.isInstance()&&(yield r)}onlyOneInstance(){const r=this.children();if(r.size!==1)return null;const n=V6e([...r]);return n?.isInstance()?n:null}_relationshipsFromInstances=null;relationshipsFromInstances(){if(this._relationshipsFromInstances)return this._relationshipsFromInstances;const{outgoing:r,incoming:n}=this._relationshipsFromInstances={outgoing:new Set,incoming:new Set};for(const o of this.instances()){for(const a of o.element.outgoing())r.add(a);for(const a of o.element.incoming())n.add(a)}return this._relationshipsFromInstances}outgoingModelRelationships(){return this.relationshipsFromInstances().outgoing.values()}incomingModelRelationships(){return this.relationshipsFromInstances().incoming.values()}internalModelRelationships(){const{outgoing:r,incoming:n}=this.relationshipsFromInstances();return Wh(n,r)}}class mB extends hB{constructor(r,n,o){super(),this.$model=r,this.$instance=n,this.element=o,this.id=n.id,this._literalId=n.id,this.title=n.title??o.title,this.hierarchyLevel=o3(n.id)}id;_literalId;title;hierarchyLevel;get $node(){return this.$instance}get parent(){return mt(this.$model.parent(this),`Parent of ${this.id} not found`)}get style(){return cr(this,"style",()=>q1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.element.$element.style,...this.$instance.style}))}get tags(){return cr(this,Symbol.for("tags"),()=>zE([...this.$instance.tags??[],...this.element.tags]))}get kind(){return this.element.kind}get summary(){return Kt.memoize(this,"summary",i3(this.$instance)??i3(this.element.$element))}get description(){return Kt.memoize(this,"description",l3(this.$instance)??l3(this.element.$element))}get technology(){return this.$instance.technology??this.element.technology??null}get links(){return this.$instance.links??this.element.links}isInstance(){return!0}outgoingModelRelationships(){return this.element.outgoing()}incomingModelRelationships(){return this.element.incoming()}*views(){for(const r of this.$model.views())if(r._type==="deployment"){if(r.includesDeployment(this.id)){yield r;continue}r.includesDeployment(this.parent.id)&&this.parent.onlyOneInstance()&&(yield r)}}}class G6e{constructor(r,n){this.instance=r,this.element=n}get id(){return this.instance.id}get _literalId(){return this.instance.id}get style(){return cr(this,"style ",()=>({shape:this.element.shape,color:this.element.color,...this.element.$element.style}))}get shape(){return this.element.shape}get color(){return this.element.color}get title(){return this.element.title}get summary(){return this.element.summary}get description(){return this.element.description}get technology(){return this.element.technology}isDeploymentNode(){return!1}isInstance(){return!1}}class X6e{constructor(r,n){this.$model=r,this.$relationship=n,this.source=r.deploymentRef(n.source),this.target=r.deploymentRef(n.target);const o=b1(this.source.id,this.target.id);this.boundary=o?this.$model.node(o):null}boundary;source;target;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Is(this.$relationship.title)?this.$relationship.title:null}get technology(){return this.$relationship.technology??null}get description(){return Kt.memoize(this,"description",this.$relationship.description)}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get navigateTo(){return this.$relationship.navigateTo?this.$model.$model.view(this.$relationship.navigateTo):null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.$model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.$model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.$model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.$model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!0}isModelRelation(){return!1}hasMetadata(){return!!this.$relationship.metadata&&!Gh(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class Jc{constructor(r=new Set,n=new Set){this.model=r,this.deployment=n}static empty(){return new Jc}static from(r,n){return new Jc(new Set(r),new Set(n))}get isEmpty(){return this.model.size===0&&this.deployment.size===0}get nonEmpty(){return this.model.size>0||this.deployment.size>0}get size(){return this.model.size+this.deployment.size}intersect(r){return Jc.from(Wh(this.model,r.model),Wh(this.deployment,r.deployment))}difference(r){return Jc.from(IE(this.model,r.model),IE(this.deployment,r.deployment))}union(r){return Jc.from(ME(this.model,r.model),ME(this.deployment,r.deployment))}}function gB(e,r){return n=>e.source===n.source&&e.target===n.target}function jE(e,r,n="directed"){if(e===r)return[];if(DI(e,r))return[];const o=Wh(e.allOutgoing,r.allIncoming),a=o.size>0?new ti(e,r,o):null;if(n==="directed")return a?[a]:[];const i=Wh(e.allIncoming,r.allOutgoing),l=i.size>0?new ti(r,e,i):null;return a&&l?[a,l]:a?[a]:l?[l]:[]}function yB(e,r,n="both"){if(e.allIncoming.size===0&&e.allOutgoing.size===0)return[];const o=[],a=[];for(const i of r)if(e!==i)for(const l of jE(e,i,n))l.source===e?o.push(l):a.push(l);return[...o,...a]}function K6e(e){return[...e].reduce((r,n,o,a)=>(o===a.length-1||r.push(...yB(n,a.slice(o+1),"both")),r),[])}const Z6e={__proto__:null,findConnection:jE,findConnectionsBetween:yB,findConnectionsWithin:K6e};class ti{constructor(r,n,o=new Set){this.source=r,this.target=n,this.relations=o,this.id=O6e(`model:${r.id}:${n.id}`)}id;_boundary;get boundary(){return this._boundary??=this.source.commonAncestor(this.target)}get expression(){return`${this.source.id} -> ${this.target.id}`}get isDirect(){return this.nonEmpty()&&!this.isImplicit}get isImplicit(){return this.nonEmpty()&&L6e(this.relations,tB(gB(this)))}get directRelations(){return new Set(Nd(this.relations,gB(this)))}nonEmpty(){return this.relations.size>0}mergeWith(r){return nt(this.source.id===r.source.id,"Cannot merge connections with different sources"),nt(this.target.id===r.target.id,"Cannot merge connections with different targets"),new ti(this.source,this.target,ME(this.relations,r.relations))}difference(r){return new ti(this.source,this.target,IE(this.relations,r.relations))}intersect(r){return nt(r instanceof ti,"Cannot intersect connection with different type"),new ti(this.source,this.target,Wh(this.relations,r.relations))}equals(r){nt(r instanceof ti,"Cannot merge connection with different type");const n=r;return this.id===n.id&&this.source.id===n.source.id&&this.target.id===n.target.id&&P6e(this.relations,n.relations)}update(r){return new ti(this.source,this.target,r)}[U6e](r,n,o){const a=this.toString();return Object.defineProperty(a,"constructor",{value:ti,enumerable:!1}),a}toString(){return[this.expression,this.relations.size?" relations:":" relations: [ ]",...[...this.relations].map(r=>" "+r.expression)].join(`
-`)}reversed(r=!1){if(!r)return new ti(this.target,this.source);const[n]=jE(this.target,this.source,"directed");return n??new ti(this.target,this.source,new Set)}}const bB={asc:(e,r)=>e>r,desc:(e,r)=>ee(i,a)}function BE(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=bB,l=r===void 0?void 0:BE(r,...n);return(s,c)=>{let u=o(s),d=o(c);return i(u,d)?1:i(d,u)?-1:l?.(s,c)??0}}function J6e(e){if(vB(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return vB(r)&&typeof n=="string"&&n in bB&&o.length===0}const vB=e=>typeof e=="function"&&e.length===1;function xB(...e){return ba(Object.entries,e)}function eEe(...e){return ba(tEe,e)}function tEe(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;if(e instanceof Map&&r instanceof Map)return rEe(e,r);if(e instanceof Set&&r instanceof Set)return nEe(e,r);let n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o of n){if(!Object.hasOwn(r,o))return!1;let{[o]:a}=e,{[o]:i}=r;if(a!==i||!Object.is(a,i))return!1}return!0}function rEe(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e){let a=r.get(n);if(o!==a||!Object.is(o,a))return!1}return!0}function nEe(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}function oEe(...e){return ba(aEe,e)}const aEe=e=>e.at(-1);function iEe(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>wB(n,e,...r):wB(e,...r)}function wB(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function FE(...e){return ba(lEe,e)}function lEe(e,r){let n=[...e];return n.sort(r),n}function sEe(...e){return Q6e(cEe,e)}const cEe=(e,r)=>[...e].sort(r);function kB(e,r,n){return typeof r=="number"||r===void 0?o=>o.split(e,r):e.split(r,n)}function j3(...e){return ba(Object.values,e)}class B3{constructor(r,n){this.$model=r,this.$element=n,this.id=this.$element.id,this._literalId=this.$element.id;const[o,a]=Qye(this.id);o?(this.imported={from:o,fqn:a},this.hierarchyLevel=o3(a)):(this.imported=null,this.hierarchyLevel=o3(this.id))}id;_literalId;hierarchyLevel;imported;get name(){return g1(this.id)}get parent(){return this.$model.parent(this)}get kind(){return this.$element.kind}get shape(){return this.style.shape}get color(){return this.style.color}get icon(){return this.style.icon??null}get tags(){return cr(this,Symbol.for("tags"),()=>zE([...this.$element.tags??[],...this.$model.specification.elements[this.$element.kind]?.tags??[]]))}get title(){return this.$element.title}get hasSummary(){return!!this.$element.summary&&!!this.$element.description&&!eEe(this.$element.summary,this.$element.description)}get summary(){return Kt.memoize(this,"summary",i3(this.$element))}get description(){return Kt.memoize(this,"description",l3(this.$element))}get technology(){return this.$element.technology??null}get links(){return this.$element.links??[]}get defaultView(){return cr(this,Symbol.for("defaultView"),()=>sB(this.scopedViews())??null)}get isRoot(){return this.parent===null}get style(){return cr(this,"style",()=>q1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$element.style}))}isAncestorOf(r){return Un(this,r)}isDescendantOf(r){return Un(r,this)}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b1(this.id,r.id);return n?this.$model.element(n):null}children(){return this.$model.children(this)}descendants(r){return r?PI([...this.$model.descendants(this)],r)[Symbol.iterator]():this.$model.descendants(this)}siblings(){return this.$model.siblings(this)}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}outgoing(r="all"){return this.$model.outgoing(this,r)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}get allOutgoing(){return cr(this,Symbol.for("allOutgoing"),()=>new Set(this.outgoing()))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>new Set(this.incoming()))}views(){return cr(this,Symbol.for("views"),()=>{const r=new Set;for(const n of this.$model.views())n.includesElement(this.id)&&r.add(n);return r})}scopedViews(){return cr(this,Symbol.for("scopedViews"),()=>{const r=new Set;for(const n of this.$model.views())n.isScopedElementView()&&n.viewOf.id===this.id&&r.add(n);return r})}isDeployed(){return Is(sB(this.deployments()))}deployments(){return this.$model.deployment.instancesOf(this)}hasMetadata(){return!!this.$element.metadata&&!Gh(this.$element.metadata)}getMetadata(r){return r?this.$element.metadata?.[r]:this.$element.metadata??{}}isTagged(r){return this.tags.includes(r)}}const hr=e=>typeof e=="string"?e:e.id,ka="/",HE=e=>{if(nt(!e.includes(`
-`),"View title cannot contain newlines"),e.includes(ka)){const r=e.split(ka).map(n=>n.trim()).filter(n=>n.length>0);return _h(r,1)?r:[""]}return[e.trim()]},F3=e=>HE(e).join(ka),uEe=e=>{const r=HE(e);return _h(r,2)?r.slice(0,-1).join(ka):null},dEe=e=>e.includes(ka)?HE(e).pop()??e:e.trim();class pEe{constructor(r){this.$model=r;const n=this.$deployments=r.$data.deployments,o=j3(n.elements);for(const a of Vc(o)){const i=this.addElement(a);for(const l of i.tags)this.#s.get(l).add(i);i.isInstance()&&this.#a.get(i.element.id).add(i)}for(const a of j3(n.relations)){const i=this.addRelation(a);for(const l of i.tags)this.#s.get(l).add(i)}}#e=new Map;#t=new Map;#r=new so(()=>new Set);#a=new so(()=>new Set);#i=new Set;#n=new Map;#o=new so(()=>new Set);#l=new so(()=>new Set);#c=new so(()=>new Set);#s=new so(()=>new Set);#u=new Map;$deployments;get $styles(){return this.$model.$styles}element(r){if(r instanceof fB||r instanceof mB)return r;const n=hr(r);return mt(this.#e.get(n),`Element ${n} not found`)}findElement(r){return this.#e.get(r)??null}node(r){const n=this.element(r);return nt(n.isDeploymentNode(),`Element ${n.id} is not a deployment node`),n}findNode(r){const n=this.findElement(r);return n?(nt(n.isDeploymentNode(),`Element ${n?.id} is not a deployment node`),n):null}instance(r){const n=this.element(r);return nt(n.isInstance(),`Element ${n.id} is not a deployed instance`),n}findInstance(r){const n=this.findElement(r);return n?(nt(n.isInstance(),`Element ${n?.id} is not a deployed instance`),n):null}roots(){return this.#i.values()}elements(){return this.#e.values()}*nodes(){for(const r of this.#e.values())r.isDeploymentNode()&&(yield r)}*nodesOfKind(r){for(const n of this.#e.values())n.isDeploymentNode()&&n.kind===r&&(yield n)}*instances(){for(const r of this.#e.values())r.isInstance()&&(yield r)}*instancesOf(r){const n=hr(r),o=this.#a.get(n);o&&(yield*o)}deploymentRef(r){if(W1.isInsideInstanceRef(r)){const{deployment:n,element:o}=r;return N6e(this.#u,`${n}@${o}`,()=>new G6e(this.instance(n),this.$model.element(o)))}return this.element(r.deployment)}relationships(){return this.#n.values()}relationship(r){return mt(this.#n.get(hr(r)),`DeploymentRelationModel ${r} not found`)}findRelationship(r){return this.#n.get(r)??null}*views(){for(const r of this.$model.views())r.isDeploymentView()&&(yield r)}parent(r){const n=hr(r);return this.#t.get(n)||null}children(r){const n=hr(r);return this.#r.get(n)}*siblings(r){const n=hr(r),o=this.parent(r)?.children()??this.roots();for(const a of o)a.id!==n&&(yield a)}*ancestors(r){let n=hr(r),o;for(;o=this.#t.get(n);)yield o,n=o.id}*descendants(r,n="desc"){for(const o of this.children(r))n==="asc"?(yield o,yield*this.descendants(o.id)):(yield*this.descendants(o.id),yield o)}*incoming(r,n="all"){const o=hr(r);for(const a of this.#o.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=hr(r);for(const a of this.#l.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}addElement(r){if(this.#e.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=b6e(r)?new fB(this,Object.freeze(r)):new mB(this,Object.freeze(r),this.$model.element(r.element));this.#e.set(n.id,n);const o=n3(n.id);return o?(nt(this.#e.has(o),`Parent ${o} of ${n.id} not found`),this.#t.set(n.id,this.node(o)),this.#r.get(o).add(n)):(nt(n.isDeploymentNode(),`Root element ${n.id} is not a deployment node`),this.#i.add(n)),n}addRelation(r){if(this.#n.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new X6e(this,Object.freeze(r));this.#n.set(n.id,n),this.#o.get(n.target.id).add(n),this.#l.get(n.source.id).add(n);const o=n.boundary?.id??null;if(o)for(const a of[o,...bd(o)])this.#c.get(a).add(n);for(const a of bd(n.source.id)){if(a===o)break;this.#l.get(a).add(n)}for(const a of bd(n.target.id)){if(a===o)break;this.#o.get(a).add(n)}return n}}class _B{constructor(r,n){this.model=r,this.$relationship=n,this.source=r.element(W1.flatten(n.source)),this.target=r.element(W1.flatten(n.target));const o=b1(this.source.id,this.target.id);this.boundary=o?this.model.element(o):null}source;target;boundary;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Is(this.$relationship.title)?this.$relationship.title:null}get technology(){return Is(this.$relationship.technology)?this.$relationship.technology:null}get description(){return Kt.memoize(this,"description",this.$relationship.description)}get navigateTo(){return this.$relationship.navigateTo?this.model.view(this.$relationship.navigateTo):null}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!1}isModelRelation(){return!0}hasMetadata(){return!!this.$relationship.metadata&&!Gh(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class hEe{constructor(r,n,o,a){this.view=r,this.$edge=n,this.source=o,this.target=a,this.#e=n}#e;get id(){return this.#e.id}get parent(){return this.#e.parent?this.view.node(this.#e.parent):null}get label(){return this.#e.label??null}get description(){return Kt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}hasParent(){return this.#e.parent!==null}get tags(){return this.#e.tags??[]}get stepNumber(){return this.isStep()?BI(this.id):null}get navigateTo(){return this.#e.navigateTo?this.view.$model.view(this.#e.navigateTo):null}get color(){return this.#e.color}get line(){return this.#e.line??this.view.$model.$styles.defaults.relationship.line}get head(){return this.#e.head??this.view.$model.$styles.defaults.relationship.arrow}get tail(){return this.#e.tail}isStep(){return v1(this.id)}*relationships(r){for(const n of this.#e.relations)if(r){const o=this.view.$model.findRelationship(n,r);o&&(yield o)}else yield this.view.$model.relationship(n)}includesRelation(r){const n=typeof r=="string"?r:r.id;return this.#e.relations.includes(n)}isTagged(r){return this.tags.includes(r)}}class fEe{constructor(r,n){this.$view=r,this.$node=n,this.#e=n}#e;get id(){return this.#e.id}get title(){return this.#e.title}get kind(){return this.#e.kind}get description(){return Kt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}get parent(){return this.#e.parent?this.$view.node(this.#e.parent):null}get element(){const r=this.#e.modelRef;return r?this.$view.$model.element(r):null}get deployment(){const r=this.#e.deploymentRef;return r?this.$view.$model.deployment.element(r):null}get shape(){return this.#e.shape}get color(){return this.#e.color}get icon(){return this.#e.icon??null}get tags(){return this.#e.tags}get links(){return this.#e.links??[]}get navigateTo(){return this.#e.navigateTo?this.$view.$model.view(this.#e.navigateTo):null}get style(){return this.#e.style}children(){return cr(this,"children",()=>new Set(this.#e.children.map(r=>this.$view.node(r))))}*ancestors(){let r=this.parent;for(;r;)yield r,r=r.parent}*siblings(){const r=this.parent?.children()??this.$view.roots();for(const n of r)n.id!==this.id&&(yield n)}*incoming(r="all"){for(const n of this.#e.inEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.target.id===this.id):case(r==="to-descendants"&&o.target.id!==this.id):yield o;break}}}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoing(r="all"){for(const n of this.#e.outEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.source.id===this.id):case(r==="from-descendants"&&o.source.id!==this.id):yield o;break}}}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}isDiagramNode(){return"width"in this.#e&&"height"in this.#e}hasChildren(){return this.#e.children.length>0}hasParent(){return this.#e.parent!==null}hasElement(){return Is(this.#e.modelRef)}hasDeployment(){return Is(this.#e.deploymentRef)}hasDeployedInstance(){return this.hasElement()&&this.hasDeployment()}isGroup(){return Kye(this.#e)}isTagged(r){return this.tags.includes(r)}}class UE{Aux;#e=new Set;#t=new Map;#r=new Map;#a=new Set;#i=new Set;#n=new Set;#o=new so(r=>new Set);$view;$model;title;folder;viewPath;constructor(r,n,o){this.$model=r,this.$view=n,this.folder=o;for(const a of n.nodes){const i=new fEe(this,Object.freeze(a));this.#t.set(a.id,i),a.parent||this.#e.add(i),i.hasDeployment()&&this.#i.add(i.deployment.id),i.hasElement()&&this.#a.add(i.element.id);for(const l of i.tags)this.#o.get(l).add(i)}for(const a of n.edges){const i=new hEe(this,Object.freeze(a),this.node(a.source),this.node(a.target));for(const l of i.tags)this.#o.get(l).add(i);for(const l of a.relations)this.#n.add(l);this.#r.set(a.id,i)}this.title=this.$view.title?dEe(this.$view.title):null,this.viewPath=this.$view.title?F3(this.$view.title):this.$view.id}get _type(){return this.$view[Y1]}get id(){return this.$view.id}get titleOrId(){return this.title??this.viewOf?.title??this.id}get titleOrUntitled(){return this.title??"Untitled"}get breadcrumbs(){return cr(this,"breadcrumbs",()=>this.folder.isRoot?[this]:[...this.folder.breadcrumbs,this])}get description(){return Kt.memoize(this,"description",this.$view.description)}get tags(){return this.$view.tags??[]}get links(){return this.$view.links??[]}get viewOf(){if(this.isElementView()){const r=this.$view.viewOf;return r?this.$model.element(r):null}return null}get mode(){if(this.isDynamicView())return this.$view.variant??"diagram";throw new Error("View is not dynamic")}get includedTags(){return[...this.#o.keys()]}roots(){return this.#e.values()}*compounds(){for(const r of this.#t.values())r.hasChildren()&&(yield r)}node(r){const n=hr(r);return mt(this.#t.get(n),`Node ${n} not found in view ${this.$view.id}`)}findNode(r){return this.#t.get(hr(r))??null}findNodeWithElement(r){const n=hr(r);return X1(this.#t.values(),o=>o.hasElement()&&o.element.id===n)??null}nodes(){return this.#t.values()}edge(r){const n=hr(r);return mt(this.#r.get(n),`Edge ${n} not found in view ${this.$view.id}`)}findEdge(r){return this.#r.get(hr(r))??null}edges(){return this.#r.values()}*edgesWithRelation(r){for(const n of this.#r.values())n.includesRelation(r)&&(yield n)}*elements(){for(const r of this.#t.values())r.hasElement()&&(yield r)}isTagged(r){return this.tags.includes(r)}includesElement(r){return this.#a.has(hr(r))}includesDeployment(r){return this.#i.has(hr(r))}includesRelation(r){return this.#n.has(hr(r))}isComputed(){return this.$view[V1]==="computed"}isDiagram(){return this.$view[V1]==="layouted"}isElementView(){return this.$view[Y1]==="element"}isScopedElementView(){return this.$view[Y1]==="element"&&Is(this.$view.viewOf)}isDeploymentView(){return this.$view[Y1]==="deployment"}isDynamicView(){return this.$view[Y1]==="dynamic"}}class H3{$model;path;title;isRoot;parentPath;defaultViewId;constructor(r,n,o){this.$model=r,this.path=n.join("/"),this.isRoot=this.path==="",this.title=oEe(n),this.isRoot?this.parentPath=void 0:this.parentPath=n.slice(0,-1).join("/"),this.defaultViewId=o}get defaultView(){return this.defaultViewId?this.$model.view(this.defaultViewId):null}get breadcrumbs(){return nt(!this.isRoot,"Root view folder has no breadcrumbs"),cr(this,"breadcrumbs",()=>{const r=this.parent;return r?r.isRoot?[r,this]:[...r.breadcrumbs,this]:[this]})}get parent(){return nt(!this.isRoot,"Root view folder has no parent"),Gh(this.parentPath)?null:this.$model.viewFolder(this.parentPath)}get children(){return this.$model.viewFolderItems(this.path)}get folders(){return cr(this,"folders",()=>{const r=[];for(const n of this.children)n instanceof H3&&r.push(n);return r})}get views(){return cr(this,"views",()=>{const r=[];for(const n of this.children)n instanceof UE&&r.push(n);return r})}}class Dd{Aux;_elements=new Map;_parents=new Map;_children=new so(()=>new Set);_rootElements=new Set;_relations=new Map;_incoming=new so(()=>new Set);_outgoing=new so(()=>new Set);_internal=new so(()=>new Set);_views=new Map;_rootViewFolder;_viewFolders=new Map;_viewFolderItems=new so(()=>new Set);_allTags=new so(()=>new Set);static fromParsed(r){return new Dd(r).asParsed}static create(r){return new Dd(r)}static fromDump(r){const{_stage:n="layouted",projectId:o="unknown",project:a,globals:i,imports:l,deployments:s,views:c,relations:u,elements:d,specification:p}=r;return new Dd({[V1]:n,projectId:o,project:a,globals:{predicates:i?.predicates??{},dynamicPredicates:i?.dynamicPredicates??{},styles:i?.styles??{}},imports:l??{},deployments:{elements:s?.elements??{},relations:s?.relations??{}},views:c??{},relations:u??{},elements:d??{},specification:p})}deployment;$data;constructor(r){this.$data=r;for(const[,n]of xB(r.elements)){const o=this.addElement(n);for(const a of o.tags)this._allTags.get(a).add(o)}for(const[n,o]of xB(r.imports??{}))for(const a of Vc(o)){const i=this.addImportedElement(n,a);for(const l of i.tags)this._allTags.get(l).add(i)}for(const n of j3(r.relations)){const o=this.addRelation(n);for(const a of o.tags)this._allTags.get(a).add(o)}if(this.deployment=new pEe(this),rB(r,"computed")||rB(r,"layouted")){const n=NI(ka),o=G1(j3(r.views),iB(i=>({view:i,path:F3(i.title??i.id),folderPath:i.title&&uEe(i.title)||""})),FE((i,l)=>n(i.folderPath,l.folderPath))),a=i=>{let l=this._viewFolders.get(i);if(!l){const s=kB(i,ka);nt(_h(s,1),`View group path "${i}" must have at least one element`);let c;i===""?c=o.find(u=>u.view.id==="index"):c=o.find(u=>u.path===i),l=new H3(this,s,c?.view.id),this._viewFolders.set(i,l)}return l};this._rootViewFolder=a("");for(const{folderPath:i}of o)this._viewFolders.has(i)||kB(i,ka).reduce((l,s)=>{const c=l.join(ka),u=Gh(c)?s:c+ka+s,d=a(u);return this._viewFolderItems.get(c).add(d),l.push(s),l},[]);for(const{view:i,folderPath:l}of o){const s=new UE(this,i,a(l));this._viewFolderItems.get(l).add(s),this._views.set(i.id,s);for(const c of s.tags)this._allTags.get(c).add(s)}}else this._rootViewFolder=new H3(this,[""],void 0),this._viewFolders.set(this._rootViewFolder.path,this._rootViewFolder)}get asParsed(){return this}get asComputed(){return this}get asLayouted(){return this}get $styles(){return cr(this,"styles",()=>TI.from(this.$data.project.styles,this.$data.specification.customColors?{theme:{colors:this.$data.specification.customColors}}:void 0))}isParsed(){return this.stage==="parsed"}isLayouted(){return this.stage==="layouted"}isComputed(){return this.stage==="computed"}get $model(){return this.$data}get stage(){return this.$data[V1]}get projectId(){return this.$data.projectId??"default"}get project(){return this.$data.project??cr(this,Symbol.for("project"),()=>({id:this.projectId}))}get specification(){return this.$data.specification}get globals(){return cr(this,Symbol.for("globals"),()=>({predicates:{...this.$data.globals?.predicates},dynamicPredicates:{...this.$data.globals?.dynamicPredicates},styles:{...this.$data.globals?.styles}}))}element(r){if(r instanceof B3)return r;const n=hr(r);return mt(this._elements.get(n),`Element ${n} not found`)}findElement(r){return this._elements.get(hr(r))??null}roots(){return this._rootElements.values()}elements(){return this._elements.values()}relationships(){return this._relations.values()}relationship(r,n){if(n==="deployment")return this.deployment.relationship(r);const o=hr(r);let a=this._relations.get(o)??null;return a||n==="model"?mt(a,`Model relation ${o} not found`):mt(this.deployment.findRelationship(o),`No model/deployment relation ${o} not found`)}findRelationship(r,n){if(n==="deployment")return this.deployment.findRelationship(r);let o=this._relations.get(hr(r))??null;return o||n==="model"?o:this.deployment.findRelationship(r)}views(){return this._views.values()}view(r){const n=hr(r);return mt(this._views.get(n),`View ${n} not found`)}findView(r){return this._views.get(r)??null}viewFolder(r){return mt(this._viewFolders.get(r),`View folder ${r} not found`)}get rootViewFolder(){return this._rootViewFolder}get hasViewFolders(){return this._viewFolders.size>1}viewFolderItems(r){return nt(this._viewFolders.has(r),`View folder ${r} not found`),this._viewFolderItems.get(r)}parent(r){const n=hr(r);return this._parents.get(n)||null}children(r){const n=hr(r);return this._children.get(n)}*siblings(r){const n=hr(r),o=this._parents.get(n),a=o?this._children.get(o.id).values():this.roots();for(const i of a)i.id!==n&&(yield i)}*ancestors(r){let n=hr(r),o;for(;o=this._parents.get(n);)yield o,n=o.id}*descendants(r){for(const n of this.children(r))yield n,yield*this.descendants(n.id)}*incoming(r,n="all"){const o=hr(r);for(const a of this._incoming.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=hr(r);for(const a of this._outgoing.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}get tags(){return cr(this,"tags",()=>FE([...this._allTags.keys()],r3))}get tagsSortedByUsage(){return cr(this,"tagsSortedByUsage",()=>G1([...this._allTags.entries()],iB(([r,n])=>({tag:r,count:n.size,tagged:n})),FE((r,n)=>r3(r.tag,n.tag)),sEe([iEe("count"),"desc"])))}findByTag(r,n){return Nd(this._allTags.get(r),o=>n==="elements"?o instanceof B3:n==="views"?o instanceof UE:n==="relationships"?o instanceof _B:!0)}*elementsOfKind(r){for(const n of this._elements.values())n.kind===r&&(yield n)}*elementsWhere(r){const n=Ad(r);for(const o of this._elements.values())n(o)&&(yield o)}*relationshipsWhere(r){const n=Ad(r);for(const o of this._relations.values())n(o)&&(yield o)}addElement(r){if(this._elements.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=new B3(this,Object.freeze(r));this._elements.set(n.id,n);const o=n3(n.id);return o?(nt(this._elements.has(o),`Parent ${o} of ${n.id} not found`),this._parents.set(n.id,this.element(o)),this._children.get(o).add(n)):this._rootElements.add(n),n}addImportedElement(r,n){nt(!Zye(n.id),"Imported element already has global FQN");const o=jI(r,n.id);if(this._elements.has(o))throw new Error(`Element ${o} already exists`);const a=new B3(this,Object.freeze({...n,id:o}));this._elements.set(a.id,a);let i=n3(a.id);for(;i;){if(i.includes(".")&&this._elements.has(i))return this._parents.set(a.id,this.element(i)),this._children.get(i).add(a),a;i=n3(i)}return this._rootElements.add(a),a}addRelation(r){if(this._relations.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new _B(this,Object.freeze(r)),{source:o,target:a}=n;this._relations.set(n.id,n),this._incoming.get(a.id).add(n),this._outgoing.get(o.id).add(n);const i=b1(o.id,a.id);if(i)for(const l of[i,...bd(i)])this._internal.get(l).add(n);for(const l of bd(o.id)){if(l===i)break;this._outgoing.get(l).add(n)}for(const l of bd(a.id)){if(l===i)break;this._incoming.get(l).add(n)}return n}}(e=>{e.EMPTY=e.create({_stage:"computed",projectId:"default",project:{id:"default"},specification:{elements:{},relationships:{},deployments:{},tags:{}},globals:{predicates:{},dynamicPredicates:{},styles:{}},deployments:{elements:{},relations:{}},elements:{},relations:{},views:{},imports:{}})})(Dd||(Dd={}));function U3(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var mEe=e=>typeof e=="object"&&e!==null;function $d(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,n])=>n!==void 0))}var gEe=e=>e==="base";function yEe(e){return e.slice().filter(r=>!gEe(r))}function EB(e){return String.fromCharCode(e+(e>25?39:97))}function bEe(e){let r="",n;for(n=Math.abs(e);n>52;n=n/52|0)r=EB(n%52)+r;return EB(n%52)+r}function vEe(e,r){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n);return e}function xEe(e){return bEe(vEe(5381,e)>>>0)}var SB=/\s*!(important)?/i;function wEe(e){return typeof e=="string"?SB.test(e):!1}function kEe(e){return typeof e=="string"?e.replace(SB,"").trim():e}function qE(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var co=e=>{const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}},_Ee=new Set(["__proto__","constructor","prototype"]);function VE(...e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{if(_Ee.has(o))return;const a=r[o],i=n[o];U3(a)&&U3(i)?r[o]=VE(a,i):r[o]=i}),r),{})}var EEe=e=>e!=null;function YE(e,r,n={}){const{stop:o,getKey:a}=n;function i(l,s=[]){if(mEe(l)){const c={};for(const[u,d]of Object.entries(l)){const p=a?.(u,d)??u,f=[...s,p];if(o?.(l,f))return r(l,s);const g=i(d,f);EEe(g)&&(c[p]=g)}return c}return r(l,s)}return i(e)}function SEe(e,r){return Array.isArray(e)?e.map(n=>r(n)):U3(e)?YE(e,n=>r(n)):r(e)}function CEe(e,r){return e.reduce((n,o,a)=>{const i=r[a];return o!=null&&(n[i]=o),n},{})}function CB(e,r,n=!0){const{utility:o,conditions:a}=r,{hasShorthand:i,resolveShorthand:l}=o;return YE(e,s=>Array.isArray(s)?CEe(s,a.breakpoints.keys):s,{stop:s=>Array.isArray(s),getKey:n?s=>i?l(s):s:void 0})}var TEe={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},REe=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function TB(e){const{utility:r,hash:n,conditions:o=TEe}=e,a=l=>[r.prefix,l].filter(Boolean).join("-"),i=(l,s)=>{let c;if(n){const u=[...o.finalize(l),s];c=a(r.toHash(u,xEe))}else c=[...o.finalize(l),a(s)].join(":");return c};return co(({base:l,...s}={})=>{const c=Object.assign(s,l),u=CB(c,e),d=new Set;return YE(u,(p,f)=>{if(p==null)return;const g=wEe(p),[b,...x]=o.shift(f),w=yEe(x),k=r.transform(b,kEe(REe(p)));let C=i(w,k.className);g&&(C=`${C}!`),d.add(C)}),Array.from(d).join(" ")})}function AEe(...e){return e.flat().filter(r=>U3(r)&&Object.keys($d(r)).length>0)}function NEe(e){function r(a){const i=AEe(...a);return i.length===1?i:i.map(l=>CB(l,e))}function n(...a){return VE(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:co(n),assignCss:o}}var DEe=/([A-Z])/g,$Ee=/^ms-/,PEe=co(e=>e.startsWith("--")?e:e.replace(DEe,"-$1").replace($Ee,"-ms-").toLowerCase()),OEe=["min","max","clamp","calc"],MEe=new RegExp(`^(${OEe.join("|")})\\(.*\\)`),IEe=e=>typeof e=="string"&&MEe.test(e),LEe="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",zEe=`(?:${LEe.split(",").join("|")})`,jEe=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${zEe}$`),BEe=e=>typeof e=="string"&&jEe.test(e),FEe=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),Z1={map:SEe,isCssFunction:IEe,isCssVar:FEe,isCssUnit:BEe},Q1=(e,r)=>{if(!e?.defaultValues)return r;const n=typeof e.defaultValues=="function"?e.defaultValues(r):e.defaultValues;return Object.assign({},n,$d(r))},HEe=(e={})=>{const r=o=>({className:[e.className,o].filter(Boolean).join("__"),base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?WE(e.compoundVariants,o):[]}),n=(e.slots??[]).map(o=>[o,r(o)]);for(const[o,a]of Object.entries(e.variants??{}))for(const[i,l]of Object.entries(a))n.forEach(([s,c])=>{c.variants[o]??={},c.variants[o][i]=l[s]??{}});return Object.fromEntries(n)},WE=(e,r)=>e.filter(n=>n.css[r]).map(n=>({...n,css:n.css[r]}));function Yn(e,...r){const n=Object.getOwnPropertyDescriptors(e),o=Object.keys(n),a=l=>{const s={};for(let c=0;ca(Array.isArray(l)?l:o.filter(l));return r.map(i).concat(a(o))}var GE=(...e)=>{const r=e.reduce((n,o)=>(o&&o.forEach(a=>n.add(a)),n),new Set([]));return Array.from(r)},RB=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function UEe(e){return RB.includes(e)?e.replace("html","").toLowerCase():e}function XE(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[UEe(r),n]))}XE.keys=RB;const qEe="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base",AB=new Set(qEe.split(",")),VEe=/^@|&|&$/;function NB(e){return AB.has(e)||VEe.test(e)}const YEe=/^_/,WEe=/&|@/;function DB(e){return e.map(r=>AB.has(r)?r.replace(YEe,""):WEe.test(r)?`[${qE(r.trim())}]`:r)}function $B(e){return e.sort((r,n)=>{const o=NB(r),a=NB(n);return o&&!a?1:!o&&a?-1:0})}const GEe="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle",PB=new Map,OB=new Map;GEe.split(",").forEach(e=>{const[r,n]=e.split(":"),[o,...a]=n.split("/");PB.set(r,o),a.length&&a.forEach(i=>{OB.set(i==="1"?o:i,r)})});const MB=e=>OB.get(e)||e,IB={conditions:{shift:$B,finalize:DB,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{transform:(e,r)=>{const n=MB(e);return{className:`${PB.get(n)||PEe(n)}_${qE(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:MB}},XEe=TB(IB),ye=(...e)=>XEe(Pd(...e));ye.raw=(...e)=>Pd(...e);const{mergeCss:Pd}=NEe(IB);function Je(){let e="",r=0,n;for(;r({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function J1(e){const{base:r,variants:n,defaultVariants:o,compoundVariants:a}=LB(e),i=f=>({...o,...$d(f)});function l(f={}){const g=i(f);let b={...r};for(const[w,k]of Object.entries(g))n[w]?.[k]&&(b=Pd(b,n[w][k]));const x=KE(a,g);return Pd(b,x)}function s(f){const g=LB(f.config),b=GE(f.variantKeys,Object.keys(n));return J1({base:Pd(r,g.base),variants:Object.fromEntries(b.map(x=>[x,Pd(n[x],g.variants[x])])),defaultVariants:VE(o,g.defaultVariants),compoundVariants:[...a,...g.compoundVariants]})}function c(f){return ye(l(f))}const u=Object.keys(n);function d(f){return Yn(f,u)}const p=Object.fromEntries(Object.entries(n).map(([f,g])=>[f,Object.keys(g)]));return Object.assign(co(c),{__cva__:!0,variantMap:p,variantKeys:u,raw:l,config:e,merge:s,splitVariantProps:d,getVariantProps:i})}function KE(e,r){let n={};return e.forEach(o=>{Object.entries(o).every(([a,i])=>a==="css"?!0:(Array.isArray(i)?i:[i]).some(l=>r[a]===l))&&(n=Pd(n,o.css))}),n}function KEe(e,r,n,o){if(r.length>0&&typeof n?.[o]=="object")throw new Error(`[recipe:${e}:${o}] Conditions are not supported when using compound variants.`)}function ZEe(e){const r=Object.entries(HEe(e)).map(([p,f])=>[p,J1(f)]),n=e.defaultVariants??{},o=r.reduce((p,[f,g])=>(e.className&&(p[f]=g.config.className),p),{});function a(p){const f=r.map(([g,b])=>[g,Je(b(p),o[g])]);return Object.fromEntries(f)}function i(p){const f=r.map(([g,b])=>[g,b.raw(p)]);return Object.fromEntries(f)}const l=e.variants??{},s=Object.keys(l);function c(p){return Yn(p,s)}const u=p=>({...n,...$d(p)}),d=Object.fromEntries(Object.entries(l).map(([p,f])=>[p,Object.keys(f)]));return Object.assign(co(a),{__cva__:!1,raw:i,config:e,variantMap:d,variantKeys:s,classNameMap:o,splitVariantProps:c,getVariantProps:u})}/**
+`}),n}function GB(e){let r=0,n=e.charCodeAt(r);for(;n===9||n===32;)r++,n=e.charCodeAt(r);return e.slice(r)}function XB(e,r){const n=D6e(e,r),o=n.one(e,void 0),a=A6e(n),i=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
+`},a),i}function I6e(e,r){return e&&"run"in e?async function(n,o){const a=XB(n,{file:o,...r});await e.run(a,o)}:function(n,o){return XB(n,{file:o,...e||r})}}function KB(e){if(e)throw e}var k8,ZB;function L6e(){if(ZB)return k8;ZB=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):r.call(u)==="[object Array]"},i=function(u){if(!u||r.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var f;for(f in u);return typeof f>"u"||e.call(u,f)},l=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},s=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(o)return o(u,d).value}else return;return u[d]};return k8=function c(){var u,d,p,f,g,b,x=arguments[0],w=1,k=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});wl.length;let c;s&&l.push(a);try{c=e.apply(this,l)}catch(u){const d=u;if(s&&n)throw d;return a(d)}s||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(l,...s){n||(n=!0,r(l,...s))}function i(l){a(null,l)}}let Zo=class extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(l=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=H1(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};Zo.prototype.file="",Zo.prototype.name="",Zo.prototype.reason="",Zo.prototype.message="",Zo.prototype.stack="",Zo.prototype.column=void 0,Zo.prototype.line=void 0,Zo.prototype.ancestors=void 0,Zo.prototype.cause=void 0,Zo.prototype.fatal=void 0,Zo.prototype.place=void 0,Zo.prototype.ruleId=void 0,Zo.prototype.source=void 0;const Wl={basename:F6e,dirname:H6e,extname:q6e,join:U6e,sep:"/"};function F6e(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');q1(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let l=-1,s=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1),s>-1&&(e.codePointAt(a)===r.codePointAt(s--)?s<0&&(o=a):(s=-1,o=l));return n===o?o=l:o<0&&(o=e.length),e.slice(n,o)}function H6e(e){if(q1(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function q6e(e){q1(e);let r=e.length,n=-1,o=0,a=-1,i=0,l;for(;r--;){const s=e.codePointAt(r);if(s===47){if(l){o=r+1;break}continue}n<0&&(l=!0,n=r+1),s===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function U6e(...e){let r=-1,n;for(;++r0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function Y6e(e,r){let n="",o=0,a=-1,i=0,l=-1,s,c;for(;++l<=e.length;){if(l2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=l,i=0;continue}}else if(n.length>0){n="",o=0,a=l,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),o=l-a-1;a=l,i=0}else s===46&&i>-1?i++:i=-1}return n}function q1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const W6e={cwd:G6e};function G6e(){return"/"}function S8(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function X6e(e){if(typeof e=="string")e=new URL(e);else if(!S8(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return K6e(e)}function K6e(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n0){let[g,...b]=d;const x=o[f][1];E8(x)&&E8(g)&&(g=_8(!0,x,g)),o[f]=[u,g,...b]}}}};const r_e=new t_e().freeze();function A8(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function N8(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function D8(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function JB(e){if(!E8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ej(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function I3(e){return n_e(e)?e:new Z6e(e)}function n_e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o_e(e){return typeof e=="string"||a_e(e)}function a_e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function i_e(){return r_e().use(e6e).use($ke).use(I6e,{allowDangerousHtml:!0,clobberPrefix:"",tableCellPadding:!1,tight:!0}).use(zxe).use(Gxe).use(Qwe,{closeSelfClosing:!0,tightSelfClosing:!0})}function l_e(e){return String(i_e().processSync(e.trim())).trim()}function s_e(e){return D3(jB(e),{includeHtml:!1,includeImageAlt:!1})}function c_e(...e){return ba(u_e,e)}function u_e(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}function U1(e){return c_e(e,r=>r===void 0)}const d_e=Symbol.for("text"),p_e=Symbol.for("html"),Gl="";class Kt{static _cache=new WeakMap;static memoize(r,n,o){return cr(r,n,()=>Kt.from(o))}static from(r){if(r==null||r===Kt.EMPTY)return Kt.EMPTY;if(r instanceof Kt)return r;if(typeof r=="string")return r.trim()===Gl?Kt.EMPTY:new Kt({txt:r});if("isEmpty"in r&&r.isEmpty||"md"in r&&r.md.trim()===Gl||"txt"in r&&r.txt.trim()===Gl)return Kt.EMPTY;const n=r,o=Kt._cache.get(n);if(o)return o;const a=new Kt(n);return Kt._cache.set(n,a),a}static EMPTY=new class extends Kt{isEmpty=!0;nonEmpty=!1;isMarkdown=!1;$source=null;constructor(){super({txt:Gl})}get text(){return null}get md(){return null}get html(){return null}};$source;isEmpty;nonEmpty;isMarkdown;constructor(r){this.isMarkdown=!1,typeof r=="string"?(this.$source={txt:r},this.isEmpty=r.trim()===Gl):(this.$source=r,this.isEmpty=!0,"md"in r?(this.isEmpty=r.md===Gl,this.isMarkdown=!0):this.isEmpty=r.txt===Gl),this.nonEmpty=!this.isEmpty}get text(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;return"txt"in r?r.txt:cr(this,d_e,()=>s_e(r.md))}get md(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;if("md"in r)return r.md;if("txt"in r)return r.txt;Xa(r)}get html(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;return"txt"in r?r.txt:cr(this,p_e,()=>l_e(r.md))}equals(r){return this===r?!0:r instanceof Kt?this.isEmpty&&r.isEmpty?!0:this.isEmpty!==r.isEmpty||this.isMarkdown!==r.isMarkdown?!1:this.isMarkdown?this.$source?.md===r.$source?.md:this.$source?.txt===r.$source?.txt:!1}}function tj(e){return r=>!e(r)}function h_e(...e){return ba(f_e,e)}const f_e=(e,r)=>r.every(n=>n(e));function m_e(...e){return ba(g_e,e)}const g_e=(e,r)=>r.some(n=>n(e));function y_e(e){return e==null}function rj(e,r){return e[V1]===r}const V1="_stage",Y1="_type";function b_e(e){return Is(e.kind)&&!Is(e.element)}function v_e(e){return"tag"in e}function x_e(e){return"kind"in e}function w_e(e){return"participant"in e}function k_e(e){return"not"in e}function __e(e){return"and"in e}function E_e(e){return"or"in e}function Ad(e){switch(!0){case w_e(e):{const r=e.participant,n=Ad(e.operator);return S_e(r,n)}case v_e(e):{if(Uc(e.tag)||"eq"in e.tag){const n=Uc(e.tag)?e.tag:e.tag.eq;return o=>Array.isArray(o.tags)&&o.tags.includes(n)}const r=e.tag.neq;return n=>!Array.isArray(n.tags)||!n.tags.includes(r)}case x_e(e):{if(Uc(e.kind)||"eq"in e.kind){const n=Uc(e.kind)?e.kind:e.kind.eq;return o=>o.kind===n}const r=e.kind.neq;return n=>y_e(n.kind)||n.kind!==r}case k_e(e):{const r=Ad(e.not);return tj(r)}case __e(e):{const r=e.and.map(Ad);return h_e(r)}case E_e(e):{const r=e.or.map(Ad);return m_e(r)}default:Xa(e)}}function S_e(e,r){return n=>{if(!n.source||!n.target)return!1;switch(e){case"source":return r(n.source);case"target":return r(n.target)}}}var W1;(e=>{function r(c){return"model"in c&&!("project"in c)}e.isElementRef=r;function n(c){return"project"in c&&"model"in c}e.isImportRef=n;function o(c){if(Uc(c))throw new Error(`Expected FqnRef, got: "${c}"`);if(n(c))return BI(c.project,c.model);if(r(c))return c.model;throw new Error("Expected FqnRef.ModelRef or FqnRef.ImportRef")}e.flatten=o;function a(c){return r(c)||n(c)}e.isModelRef=a;function i(c){return"deployment"in c&&"element"in c}e.isInsideInstanceRef=i;function l(c){return"deployment"in c&&!("element"in c)}e.isDeploymentElementRef=l;function s(c){return l(c)||i(c)}e.isDeploymentRef=s})(W1||(W1={}));function P8(e){return v1(e)&&e.includes(".")?e.slice(0,e.indexOf(".")+1):null}var Qc;(e=>{function r({x:s,y:c,width:u,height:d}){return{x:s+u/2,y:c+d/2}}e.center=r;function n(s){const{x1:c,y1:u,x2:d,y2:p}=$8.fromPoints(s);return{x:c,y:u,width:d-c,height:p-u}}e.fromPoints=n;function o(...s){if(nt(_h(s,1),"No boxes provided"),s.length===1)return s[0];let c=1/0,u=1/0,d=-1/0,p=-1/0;for(const f of s)c=Math.min(c,f.x),u=Math.min(u,f.y),d=Math.max(d,f.x+f.width),p=Math.max(p,f.y+f.height);return{x:c,y:u,width:d-c,height:p-u}}e.merge=o;function a(s){return{x1:s.x,y1:s.y,x2:s.x+s.width,y2:s.y+s.height}}e.toRectBox=a;function i(s,c){return c===0?s:{x:s.x-c,y:s.y-c,width:s.width+c*2,height:s.height+c*2}}e.expand=i;function l(s,c){return c===0?s:{x:s.x+c,y:s.y+c,width:s.width-c*2,height:s.height-c*2}}e.shrink=l})(Qc||(Qc={}));var $8;(e=>{function r({x1:i,y1:l,x2:s,y2:c}){return{x:(i+s)/2,y:(l+c)/2}}e.center=r;function n(i){nt(i.length>0,"At least one point is required");let l=1/0,s=1/0,c=-1/0,u=-1/0;for(const[d,p]of i)l=Math.min(l,d),s=Math.min(s,p),c=Math.max(c,d),u=Math.max(u,p);return{x1:l,y1:s,x2:c,y2:u}}e.fromPoints=n;function o(...i){nt(i.length>0,"No boxes provided");let l=1/0,s=1/0,c=-1/0,u=-1/0;for(const d of i)l=Math.min(l,d.x1),s=Math.min(s,d.y1),c=Math.max(c,d.x2),u=Math.max(u,d.y2);return{x1:l,y1:s,x2:c,y2:u}}e.merge=o;function a(i){return{x:i.x1,y:i.y1,width:i.x2-i.x1,height:i.y2-i.y1}}e.toBBox=a})($8||($8={}));function nj(e){const r=typeof e=="string"?e:e.color;return r.startsWith("#")||r.startsWith("rgb")}const oj={done:!1,hasNext:!1};function G1(e,...r){let n=e,o=r.map(i=>"lazy"in i?C_e(i):void 0),a=0;for(;ae.map(r),A_e=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function N_e(e,r,n){let o=e.get(r);return o||(o=n(r),e.set(r,o)),o}var M8={},lj;function D_e(){return lj||(lj=1,(function(e){e.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.");var r=new Set,n=1/0,o=null,a,i,l=arguments.length;for(i=0;in.size)return!1;for(;a=o.next(),!a.done;)if(!n.has(a.value))return!1;return!0},e.isSuperset=function(r,n){return e.isSubset(n,r)},e.add=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.add(a.value)},e.subtract=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.delete(a.value)},e.intersect=function(r,n){for(var o=r.values(),a;a=o.next(),!a.done;)n.has(a.value)||r.delete(a.value)},e.disjunct=function(r,n){for(var o=r.values(),a,i=[];a=o.next(),!a.done;)n.has(a.value)&&i.push(a.value);for(o=n.values();a=o.next(),!a.done;)r.has(a.value)||r.add(a.value);for(var l=0,s=i.length;ln.size&&(o=r,r=n,n=o),r.size===0)return 0;if(r===n)return r.size;for(var a=r.values(),i,l=0;i=a.next(),!i.done;)n.has(i.value)&&l++;return l},e.unionSize=function(r,n){var o=e.intersectionSize(r,n);return r.size+n.size-o},e.jaccard=function(r,n){var o=e.intersectionSize(r,n);if(o===0)return 0;var a=r.size+n.size-o;return o/a},e.overlap=function(r,n){var o=e.intersectionSize(r,n);return o===0?0:o/Math.min(r.size,n.size)}})(M8)),M8}var P_e=D_e();function O8(...e){let r=new Set;for(const n of e)for(const o of n)r.add(o);return r}function Wh(e,...r){let n=new Set;if(e.size===0)return n;let o=_h(r,2)?P_e.intersection(...r):r[0];if(o.size===0)return n;for(const a of e)o.has(a)&&n.add(a);return n}function I8(e,r){if(e.size===0)return new Set;if(r.size===0)return new Set(e);let n=new Set;for(const o of e)r.has(o)||n.add(o);return n}function $_e(e,r){return e.size===r.size&&[...e].every(n=>r.has(n))}function M_e(e){let r=5381;const n=e.length;nt(n>0,"stringHash: empty string");for(let o=0;o>>0).toString(36)}const L3=e=>typeof e=="function";function Nd(e,r){const n=r??e;nt(L3(n));function*o(a){for(const i of a)n(i)&&(yield i)}return r?o(e):o}function X1(e,r){const n=r??e;nt(L3(n));function o(a){for(const i of a)if(n(i))return i}return r?o(e):o}function sj(e){return e?cj(e):cj}function cj(e){for(const r of e)return r}function O_e(e,r){const n=e;nt(L3(n));function*o(a){for(const i of a)yield n(i)}return o}function K1(e){return e?Array.from(e):r=>Array.from(r)}function I_e(e){return e?new Set(e):r=>new Set(r)}function L_e(e,r){const n=r??e;nt(L3(n));function o(a){for(const i of a)if(n(i))return!0;return!1}return r?o(e):o}function z_e(e,r){const n=e;nt(n>=0,"Count must be a non-negative number");function*o(a){let i=0;for(const l of a){if(i>=n)break;yield l,i++}}return a=>o(a)}function B_e(e,r){let n=Math.ceil(e),o=Math.floor(r);if(o{setTimeout(()=>{n(j_e)},r??100)})}function z3(e){const r=Vc([...e]),n=new Set(r),o=new Map(r.map(l=>[l._literalId,l])),a=new so(()=>null),i=r.reduce((l,s,c,u)=>(l.set(s,u.slice(c+1).filter(PI(s)).map(d=>(n.delete(d),d)).reduce((d,p)=>(d.some(qn(p))||(d.push(p),a.set(p,s)),d),[])),l),new so(()=>[]));return{sorted:r,byId:l=>mt(o.get(l),`Element not found by id: ${l}`),root:n,parent:l=>a.get(l),children:l=>i.get(l),flatten:()=>new Set([...n,...r.reduce((l,s)=>{const c=i.get(s);return c.length===0?(l.push(s),l):(c.length>1&&l.push(...c),l)},[])])}}const L8=(e,r)=>e.size>2&&r.size!==e.size?new Set(Vc([...z3(e).flatten(),...r])):e.size>1?new Set(Vc([...e])):e;function uj(e,r,n){const o=c=>r.has(c);let a=new Set([e]);const i={incomers:new Set,subjects:new Set([e]),outgoers:new Set};let l=new Set(n.incoming.flatMap(c=>{if(i.subjects.add(c.target),i.incomers.add(c.source),a.add(c.target),c.target!==e){let p=c.target.parent;for(;p&&p!==e;)a.add(p),p=p.parent}let u=c.source;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d})),s=new Set(n.outgoing.flatMap(c=>{if(i.subjects.add(c.source),i.outgoers.add(c.target),a.add(c.source),c.source!==e){let p=c.source.parent;for(;p&&p!==e;)a.add(p),p=p.parent}let u=c.target;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d}));return{incomers:L8(l,i.incomers),incoming:new Set(n.incoming),subjects:L8(a,i.subjects),outgoing:new Set(n.outgoing),outgoers:L8(s,i.outgoers)}}function dj(e,r,n,o="global"){const a=n?r.findView(n):null;if(o==="view")return nt(a,'Scope view id is required when scope is "view"'),H_e(e,a,r);const i=r.element(e),l=I_e(i.ascendingSiblings());return uj(i,l,{incoming:[...i.incoming()],outgoing:[...i.outgoing()]})}function H_e(e,r,n){const o=n.element(e);let a={incoming:K1(Nd(o.incoming(),s=>r.includesRelation(s.id))),outgoing:K1(Nd(o.outgoing(),s=>r.includesRelation(s.id)))};const i=PI(o),l=new Set([...o.ascendingSiblings(),...G1(r.elements(),O_e(s=>s.element),Nd(s=>s!==o&&i(s)))]);return uj(o,l,a)}var pj;(e=>{e.isInside=r=>n=>qn(r,n.source.id)&&qn(r,n.target.id),e.isDirectedBetween=(r,n)=>o=>(o.source.id===r||qn(r,o.source.id))&&(o.target.id===n||qn(n,o.target.id)),e.isAnyBetween=(r,n)=>{const o=(0,e.isDirectedBetween)(r,n),a=(0,e.isDirectedBetween)(n,r);return i=>o(i)||a(i)},e.isIncoming=r=>n=>(n.target.id===r||qn(r,n.target.id))&&!qn(r,n.source.id),e.isOutgoing=r=>n=>(n.source.id===r||qn(r,n.source.id))&&!qn(r,n.target.id),e.isAnyInOut=r=>{const n=(0,e.isIncoming)(r),o=(0,e.isOutgoing)(r);return a=>n(a)||o(a)}})(pj||(pj={}));const q_e=Symbol.for("nodejs.util.inspect.custom");function U_e(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return G1(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>G1(a,o),o)}throw Error("Wrong number of arguments")}function Gh(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function V_e(...e){return ba(Y_e,e)}const Y_e=e=>e.length===1?e[0]:void 0;function z8(...e){return U_e(W_e,e)}function W_e(){let e=new Set;return r=>e.has(r)?oj:(e.add(r),{done:!1,hasNext:!0,next:r})}class hj{get style(){return cr(this,"style",()=>U1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$node.style}))}get name(){return g1(this.id)}get shape(){return this.style.shape}get color(){return this.style.color}get summary(){return Kt.memoize(this,"summary",i3(this.$node))}get description(){return Kt.memoize(this,"description",l3(this.$node))}get technology(){return this.$node.technology??null}get links(){return this.$node.links??[]}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b1(this.id,r.id);return n?this.$model.node(n):null}siblings(){return this.$model.siblings(this)}isSibling(r){return this.parent===r.parent}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}outgoing(r="all"){return this.$model.outgoing(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}*views(){for(const r of this.$model.views())r._type==="deployment"&&r.includesDeployment(this.id)&&(yield r)}isDeploymentNode(){return!1}isInstance(){return!1}get allOutgoing(){return cr(this,Symbol.for("allOutgoing"),()=>Jc.from(new Set(this.outgoingModelRelationships()),new Set(this.outgoing())))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>Jc.from(new Set(this.incomingModelRelationships()),new Set(this.incoming())))}hasMetadata(){return!!this.$node.metadata&&!Gh(this.$node.metadata)}getMetadata(r){return r?this.$node.metadata?.[r]:this.$node.metadata??{}}isTagged(r){return this.tags.includes(r)}}class fj extends hj{constructor(r,n){super(),this.$model=r,this.$node=n,this.id=n.id,this._literalId=n.id,this.title=n.title,this.hierarchyLevel=o3(n.id)}id;_literalId;title;hierarchyLevel;get parent(){return this.$model.parent(this)}get kind(){return this.$node.kind}get tags(){return cr(this,Symbol.for("tags"),()=>z8([...this.$node.tags??[],...this.$model.$model.specification.deployments[this.kind]?.tags??[]]))}children(){return this.$model.children(this)}descendants(r="desc"){return this.$model.descendants(this,r)}isDeploymentNode(){return!0}*instances(){for(const r of this.descendants("desc"))r.isInstance()&&(yield r)}onlyOneInstance(){const r=this.children();if(r.size!==1)return null;const n=V_e([...r]);return n?.isInstance()?n:null}_relationshipsFromInstances=null;relationshipsFromInstances(){if(this._relationshipsFromInstances)return this._relationshipsFromInstances;const{outgoing:r,incoming:n}=this._relationshipsFromInstances={outgoing:new Set,incoming:new Set};for(const o of this.instances()){for(const a of o.element.outgoing())r.add(a);for(const a of o.element.incoming())n.add(a)}return this._relationshipsFromInstances}outgoingModelRelationships(){return this.relationshipsFromInstances().outgoing.values()}incomingModelRelationships(){return this.relationshipsFromInstances().incoming.values()}internalModelRelationships(){const{outgoing:r,incoming:n}=this.relationshipsFromInstances();return Wh(n,r)}}class mj extends hj{constructor(r,n,o){super(),this.$model=r,this.$instance=n,this.element=o,this.id=n.id,this._literalId=n.id,this.title=n.title??o.title,this.hierarchyLevel=o3(n.id)}id;_literalId;title;hierarchyLevel;get $node(){return this.$instance}get parent(){return mt(this.$model.parent(this),`Parent of ${this.id} not found`)}get style(){return cr(this,"style",()=>U1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.element.$element.style,...this.$instance.style}))}get tags(){return cr(this,Symbol.for("tags"),()=>z8([...this.$instance.tags??[],...this.element.tags]))}get kind(){return this.element.kind}get summary(){return Kt.memoize(this,"summary",i3(this.$instance)??i3(this.element.$element))}get description(){return Kt.memoize(this,"description",l3(this.$instance)??l3(this.element.$element))}get technology(){return this.$instance.technology??this.element.technology??null}get links(){return this.$instance.links??this.element.links}isInstance(){return!0}outgoingModelRelationships(){return this.element.outgoing()}incomingModelRelationships(){return this.element.incoming()}*views(){for(const r of this.$model.views())if(r._type==="deployment"){if(r.includesDeployment(this.id)){yield r;continue}r.includesDeployment(this.parent.id)&&this.parent.onlyOneInstance()&&(yield r)}}}class G_e{constructor(r,n){this.instance=r,this.element=n}get id(){return this.instance.id}get _literalId(){return this.instance.id}get style(){return cr(this,"style ",()=>({shape:this.element.shape,color:this.element.color,...this.element.$element.style}))}get shape(){return this.element.shape}get color(){return this.element.color}get title(){return this.element.title}get summary(){return this.element.summary}get description(){return this.element.description}get technology(){return this.element.technology}isDeploymentNode(){return!1}isInstance(){return!1}}class X_e{constructor(r,n){this.$model=r,this.$relationship=n,this.source=r.deploymentRef(n.source),this.target=r.deploymentRef(n.target);const o=b1(this.source.id,this.target.id);this.boundary=o?this.$model.node(o):null}boundary;source;target;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Is(this.$relationship.title)?this.$relationship.title:null}get technology(){return this.$relationship.technology??null}get description(){return Kt.memoize(this,"description",this.$relationship.description)}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get navigateTo(){return this.$relationship.navigateTo?this.$model.$model.view(this.$relationship.navigateTo):null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.$model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.$model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.$model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.$model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!0}isModelRelation(){return!1}hasMetadata(){return!!this.$relationship.metadata&&!Gh(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class Jc{constructor(r=new Set,n=new Set){this.model=r,this.deployment=n}static empty(){return new Jc}static from(r,n){return new Jc(new Set(r),new Set(n))}get isEmpty(){return this.model.size===0&&this.deployment.size===0}get nonEmpty(){return this.model.size>0||this.deployment.size>0}get size(){return this.model.size+this.deployment.size}intersect(r){return Jc.from(Wh(this.model,r.model),Wh(this.deployment,r.deployment))}difference(r){return Jc.from(I8(this.model,r.model),I8(this.deployment,r.deployment))}union(r){return Jc.from(O8(this.model,r.model),O8(this.deployment,r.deployment))}}function gj(e,r){return n=>e.source===n.source&&e.target===n.target}function B8(e,r,n="directed"){if(e===r)return[];if(DI(e,r))return[];const o=Wh(e.allOutgoing,r.allIncoming),a=o.size>0?new ti(e,r,o):null;if(n==="directed")return a?[a]:[];const i=Wh(e.allIncoming,r.allOutgoing),l=i.size>0?new ti(r,e,i):null;return a&&l?[a,l]:a?[a]:l?[l]:[]}function yj(e,r,n="both"){if(e.allIncoming.size===0&&e.allOutgoing.size===0)return[];const o=[],a=[];for(const i of r)if(e!==i)for(const l of B8(e,i,n))l.source===e?o.push(l):a.push(l);return[...o,...a]}function K_e(e){return[...e].reduce((r,n,o,a)=>(o===a.length-1||r.push(...yj(n,a.slice(o+1),"both")),r),[])}const Z_e={__proto__:null,findConnection:B8,findConnectionsBetween:yj,findConnectionsWithin:K_e};class ti{constructor(r,n,o=new Set){this.source=r,this.target=n,this.relations=o,this.id=M_e(`model:${r.id}:${n.id}`)}id;_boundary;get boundary(){return this._boundary??=this.source.commonAncestor(this.target)}get expression(){return`${this.source.id} -> ${this.target.id}`}get isDirect(){return this.nonEmpty()&&!this.isImplicit}get isImplicit(){return this.nonEmpty()&&L_e(this.relations,tj(gj(this)))}get directRelations(){return new Set(Nd(this.relations,gj(this)))}nonEmpty(){return this.relations.size>0}mergeWith(r){return nt(this.source.id===r.source.id,"Cannot merge connections with different sources"),nt(this.target.id===r.target.id,"Cannot merge connections with different targets"),new ti(this.source,this.target,O8(this.relations,r.relations))}difference(r){return new ti(this.source,this.target,I8(this.relations,r.relations))}intersect(r){return nt(r instanceof ti,"Cannot intersect connection with different type"),new ti(this.source,this.target,Wh(this.relations,r.relations))}equals(r){nt(r instanceof ti,"Cannot merge connection with different type");const n=r;return this.id===n.id&&this.source.id===n.source.id&&this.target.id===n.target.id&&$_e(this.relations,n.relations)}update(r){return new ti(this.source,this.target,r)}[q_e](r,n,o){const a=this.toString();return Object.defineProperty(a,"constructor",{value:ti,enumerable:!1}),a}toString(){return[this.expression,this.relations.size?" relations:":" relations: [ ]",...[...this.relations].map(r=>" "+r.expression)].join(`
+`)}reversed(r=!1){if(!r)return new ti(this.target,this.source);const[n]=B8(this.target,this.source,"directed");return n??new ti(this.target,this.source,new Set)}}const bj={asc:(e,r)=>e>r,desc:(e,r)=>ee(i,a)}function j8(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=bj,l=r===void 0?void 0:j8(r,...n);return(s,c)=>{let u=o(s),d=o(c);return i(u,d)?1:i(d,u)?-1:l?.(s,c)??0}}function J_e(e){if(vj(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return vj(r)&&typeof n=="string"&&n in bj&&o.length===0}const vj=e=>typeof e=="function"&&e.length===1;function xj(...e){return ba(Object.entries,e)}function e8e(...e){return ba(t8e,e)}function t8e(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;if(e instanceof Map&&r instanceof Map)return r8e(e,r);if(e instanceof Set&&r instanceof Set)return n8e(e,r);let n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o of n){if(!Object.hasOwn(r,o))return!1;let{[o]:a}=e,{[o]:i}=r;if(a!==i||!Object.is(a,i))return!1}return!0}function r8e(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e){let a=r.get(n);if(o!==a||!Object.is(o,a))return!1}return!0}function n8e(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}function o8e(...e){return ba(a8e,e)}const a8e=e=>e.at(-1);function i8e(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>wj(n,e,...r):wj(e,...r)}function wj(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function F8(...e){return ba(l8e,e)}function l8e(e,r){let n=[...e];return n.sort(r),n}function s8e(...e){return Q_e(c8e,e)}const c8e=(e,r)=>[...e].sort(r);function kj(e,r,n){return typeof r=="number"||r===void 0?o=>o.split(e,r):e.split(r,n)}function B3(...e){return ba(Object.values,e)}class j3{constructor(r,n){this.$model=r,this.$element=n,this.id=this.$element.id,this._literalId=this.$element.id;const[o,a]=Qye(this.id);o?(this.imported={from:o,fqn:a},this.hierarchyLevel=o3(a)):(this.imported=null,this.hierarchyLevel=o3(this.id))}id;_literalId;hierarchyLevel;imported;get name(){return g1(this.id)}get parent(){return this.$model.parent(this)}get kind(){return this.$element.kind}get shape(){return this.style.shape}get color(){return this.style.color}get icon(){return this.style.icon??null}get tags(){return cr(this,Symbol.for("tags"),()=>z8([...this.$element.tags??[],...this.$model.specification.elements[this.$element.kind]?.tags??[]]))}get title(){return this.$element.title}get hasSummary(){return!!this.$element.summary&&!!this.$element.description&&!e8e(this.$element.summary,this.$element.description)}get summary(){return Kt.memoize(this,"summary",i3(this.$element))}get description(){return Kt.memoize(this,"description",l3(this.$element))}get technology(){return this.$element.technology??null}get links(){return this.$element.links??[]}get defaultView(){return cr(this,Symbol.for("defaultView"),()=>sj(this.scopedViews())??null)}get isRoot(){return this.parent===null}get style(){return cr(this,"style",()=>U1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$element.style}))}isAncestorOf(r){return qn(this,r)}isDescendantOf(r){return qn(r,this)}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b1(this.id,r.id);return n?this.$model.element(n):null}children(){return this.$model.children(this)}descendants(r){return r?$I([...this.$model.descendants(this)],r)[Symbol.iterator]():this.$model.descendants(this)}siblings(){return this.$model.siblings(this)}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}outgoing(r="all"){return this.$model.outgoing(this,r)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}get allOutgoing(){return cr(this,Symbol.for("allOutgoing"),()=>new Set(this.outgoing()))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>new Set(this.incoming()))}views(){return cr(this,Symbol.for("views"),()=>{const r=new Set;for(const n of this.$model.views())n.includesElement(this.id)&&r.add(n);return r})}scopedViews(){return cr(this,Symbol.for("scopedViews"),()=>{const r=new Set;for(const n of this.$model.views())n.isScopedElementView()&&n.viewOf.id===this.id&&r.add(n);return r})}isDeployed(){return Is(sj(this.deployments()))}deployments(){return this.$model.deployment.instancesOf(this)}hasMetadata(){return!!this.$element.metadata&&!Gh(this.$element.metadata)}getMetadata(r){return r?this.$element.metadata?.[r]:this.$element.metadata??{}}isTagged(r){return this.tags.includes(r)}}const hr=e=>typeof e=="string"?e:e.id,ka="/",H8=e=>{if(nt(!e.includes(`
+`),"View title cannot contain newlines"),e.includes(ka)){const r=e.split(ka).map(n=>n.trim()).filter(n=>n.length>0);return _h(r,1)?r:[""]}return[e.trim()]},F3=e=>H8(e).join(ka),u8e=e=>{const r=H8(e);return _h(r,2)?r.slice(0,-1).join(ka):null},d8e=e=>e.includes(ka)?H8(e).pop()??e:e.trim();class p8e{constructor(r){this.$model=r;const n=this.$deployments=r.$data.deployments,o=B3(n.elements);for(const a of Vc(o)){const i=this.addElement(a);for(const l of i.tags)this.#s.get(l).add(i);i.isInstance()&&this.#a.get(i.element.id).add(i)}for(const a of B3(n.relations)){const i=this.addRelation(a);for(const l of i.tags)this.#s.get(l).add(i)}}#e=new Map;#t=new Map;#r=new so(()=>new Set);#a=new so(()=>new Set);#i=new Set;#n=new Map;#o=new so(()=>new Set);#l=new so(()=>new Set);#c=new so(()=>new Set);#s=new so(()=>new Set);#u=new Map;$deployments;get $styles(){return this.$model.$styles}element(r){if(r instanceof fj||r instanceof mj)return r;const n=hr(r);return mt(this.#e.get(n),`Element ${n} not found`)}findElement(r){return this.#e.get(r)??null}node(r){const n=this.element(r);return nt(n.isDeploymentNode(),`Element ${n.id} is not a deployment node`),n}findNode(r){const n=this.findElement(r);return n?(nt(n.isDeploymentNode(),`Element ${n?.id} is not a deployment node`),n):null}instance(r){const n=this.element(r);return nt(n.isInstance(),`Element ${n.id} is not a deployed instance`),n}findInstance(r){const n=this.findElement(r);return n?(nt(n.isInstance(),`Element ${n?.id} is not a deployed instance`),n):null}roots(){return this.#i.values()}elements(){return this.#e.values()}*nodes(){for(const r of this.#e.values())r.isDeploymentNode()&&(yield r)}*nodesOfKind(r){for(const n of this.#e.values())n.isDeploymentNode()&&n.kind===r&&(yield n)}*instances(){for(const r of this.#e.values())r.isInstance()&&(yield r)}*instancesOf(r){const n=hr(r),o=this.#a.get(n);o&&(yield*o)}deploymentRef(r){if(W1.isInsideInstanceRef(r)){const{deployment:n,element:o}=r;return N_e(this.#u,`${n}@${o}`,()=>new G_e(this.instance(n),this.$model.element(o)))}return this.element(r.deployment)}relationships(){return this.#n.values()}relationship(r){return mt(this.#n.get(hr(r)),`DeploymentRelationModel ${r} not found`)}findRelationship(r){return this.#n.get(r)??null}*views(){for(const r of this.$model.views())r.isDeploymentView()&&(yield r)}parent(r){const n=hr(r);return this.#t.get(n)||null}children(r){const n=hr(r);return this.#r.get(n)}*siblings(r){const n=hr(r),o=this.parent(r)?.children()??this.roots();for(const a of o)a.id!==n&&(yield a)}*ancestors(r){let n=hr(r),o;for(;o=this.#t.get(n);)yield o,n=o.id}*descendants(r,n="desc"){for(const o of this.children(r))n==="asc"?(yield o,yield*this.descendants(o.id)):(yield*this.descendants(o.id),yield o)}*incoming(r,n="all"){const o=hr(r);for(const a of this.#o.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=hr(r);for(const a of this.#l.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}addElement(r){if(this.#e.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=b_e(r)?new fj(this,Object.freeze(r)):new mj(this,Object.freeze(r),this.$model.element(r.element));this.#e.set(n.id,n);const o=n3(n.id);return o?(nt(this.#e.has(o),`Parent ${o} of ${n.id} not found`),this.#t.set(n.id,this.node(o)),this.#r.get(o).add(n)):(nt(n.isDeploymentNode(),`Root element ${n.id} is not a deployment node`),this.#i.add(n)),n}addRelation(r){if(this.#n.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new X_e(this,Object.freeze(r));this.#n.set(n.id,n),this.#o.get(n.target.id).add(n),this.#l.get(n.source.id).add(n);const o=n.boundary?.id??null;if(o)for(const a of[o,...bd(o)])this.#c.get(a).add(n);for(const a of bd(n.source.id)){if(a===o)break;this.#l.get(a).add(n)}for(const a of bd(n.target.id)){if(a===o)break;this.#o.get(a).add(n)}return n}}class _j{constructor(r,n){this.model=r,this.$relationship=n,this.source=r.element(W1.flatten(n.source)),this.target=r.element(W1.flatten(n.target));const o=b1(this.source.id,this.target.id);this.boundary=o?this.model.element(o):null}source;target;boundary;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Is(this.$relationship.title)?this.$relationship.title:null}get technology(){return Is(this.$relationship.technology)?this.$relationship.technology:null}get description(){return Kt.memoize(this,"description",this.$relationship.description)}get navigateTo(){return this.$relationship.navigateTo?this.model.view(this.$relationship.navigateTo):null}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!1}isModelRelation(){return!0}hasMetadata(){return!!this.$relationship.metadata&&!Gh(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class h8e{constructor(r,n,o,a){this.view=r,this.$edge=n,this.source=o,this.target=a,this.#e=n}#e;get id(){return this.#e.id}get parent(){return this.#e.parent?this.view.node(this.#e.parent):null}get label(){return this.#e.label??null}get description(){return Kt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}hasParent(){return this.#e.parent!==null}get tags(){return this.#e.tags??[]}get stepNumber(){return this.isStep()?jI(this.id):null}get navigateTo(){return this.#e.navigateTo?this.view.$model.view(this.#e.navigateTo):null}get color(){return this.#e.color}get line(){return this.#e.line??this.view.$model.$styles.defaults.relationship.line}get head(){return this.#e.head??this.view.$model.$styles.defaults.relationship.arrow}get tail(){return this.#e.tail}isStep(){return v1(this.id)}*relationships(r){for(const n of this.#e.relations)if(r){const o=this.view.$model.findRelationship(n,r);o&&(yield o)}else yield this.view.$model.relationship(n)}includesRelation(r){const n=typeof r=="string"?r:r.id;return this.#e.relations.includes(n)}isTagged(r){return this.tags.includes(r)}}class f8e{constructor(r,n){this.$view=r,this.$node=n,this.#e=n}#e;get id(){return this.#e.id}get title(){return this.#e.title}get kind(){return this.#e.kind}get description(){return Kt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}get parent(){return this.#e.parent?this.$view.node(this.#e.parent):null}get element(){const r=this.#e.modelRef;return r?this.$view.$model.element(r):null}get deployment(){const r=this.#e.deploymentRef;return r?this.$view.$model.deployment.element(r):null}get shape(){return this.#e.shape}get color(){return this.#e.color}get icon(){return this.#e.icon??null}get tags(){return this.#e.tags}get links(){return this.#e.links??[]}get navigateTo(){return this.#e.navigateTo?this.$view.$model.view(this.#e.navigateTo):null}get style(){return this.#e.style}children(){return cr(this,"children",()=>new Set(this.#e.children.map(r=>this.$view.node(r))))}*ancestors(){let r=this.parent;for(;r;)yield r,r=r.parent}*siblings(){const r=this.parent?.children()??this.$view.roots();for(const n of r)n.id!==this.id&&(yield n)}*incoming(r="all"){for(const n of this.#e.inEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.target.id===this.id):case(r==="to-descendants"&&o.target.id!==this.id):yield o;break}}}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoing(r="all"){for(const n of this.#e.outEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.source.id===this.id):case(r==="from-descendants"&&o.source.id!==this.id):yield o;break}}}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}isDiagramNode(){return"width"in this.#e&&"height"in this.#e}hasChildren(){return this.#e.children.length>0}hasParent(){return this.#e.parent!==null}hasElement(){return Is(this.#e.modelRef)}hasDeployment(){return Is(this.#e.deploymentRef)}hasDeployedInstance(){return this.hasElement()&&this.hasDeployment()}isGroup(){return Kye(this.#e)}isTagged(r){return this.tags.includes(r)}}class q8{Aux;#e=new Set;#t=new Map;#r=new Map;#a=new Set;#i=new Set;#n=new Set;#o=new so(r=>new Set);$view;$model;title;folder;viewPath;constructor(r,n,o){this.$model=r,this.$view=n,this.folder=o;for(const a of n.nodes){const i=new f8e(this,Object.freeze(a));this.#t.set(a.id,i),a.parent||this.#e.add(i),i.hasDeployment()&&this.#i.add(i.deployment.id),i.hasElement()&&this.#a.add(i.element.id);for(const l of i.tags)this.#o.get(l).add(i)}for(const a of n.edges){const i=new h8e(this,Object.freeze(a),this.node(a.source),this.node(a.target));for(const l of i.tags)this.#o.get(l).add(i);for(const l of a.relations)this.#n.add(l);this.#r.set(a.id,i)}this.title=this.$view.title?d8e(this.$view.title):null,this.viewPath=this.$view.title?F3(this.$view.title):this.$view.id}get _type(){return this.$view[Y1]}get id(){return this.$view.id}get titleOrId(){return this.title??this.viewOf?.title??this.id}get titleOrUntitled(){return this.title??"Untitled"}get breadcrumbs(){return cr(this,"breadcrumbs",()=>this.folder.isRoot?[this]:[...this.folder.breadcrumbs,this])}get description(){return Kt.memoize(this,"description",this.$view.description)}get tags(){return this.$view.tags??[]}get links(){return this.$view.links??[]}get viewOf(){if(this.isElementView()){const r=this.$view.viewOf;return r?this.$model.element(r):null}return null}get mode(){if(this.isDynamicView())return this.$view.variant??"diagram";throw new Error("View is not dynamic")}get includedTags(){return[...this.#o.keys()]}roots(){return this.#e.values()}*compounds(){for(const r of this.#t.values())r.hasChildren()&&(yield r)}node(r){const n=hr(r);return mt(this.#t.get(n),`Node ${n} not found in view ${this.$view.id}`)}findNode(r){return this.#t.get(hr(r))??null}findNodeWithElement(r){const n=hr(r);return X1(this.#t.values(),o=>o.hasElement()&&o.element.id===n)??null}nodes(){return this.#t.values()}edge(r){const n=hr(r);return mt(this.#r.get(n),`Edge ${n} not found in view ${this.$view.id}`)}findEdge(r){return this.#r.get(hr(r))??null}edges(){return this.#r.values()}*edgesWithRelation(r){for(const n of this.#r.values())n.includesRelation(r)&&(yield n)}*elements(){for(const r of this.#t.values())r.hasElement()&&(yield r)}isTagged(r){return this.tags.includes(r)}includesElement(r){return this.#a.has(hr(r))}includesDeployment(r){return this.#i.has(hr(r))}includesRelation(r){return this.#n.has(hr(r))}isComputed(){return this.$view[V1]==="computed"}isDiagram(){return this.$view[V1]==="layouted"}isElementView(){return this.$view[Y1]==="element"}isScopedElementView(){return this.$view[Y1]==="element"&&Is(this.$view.viewOf)}isDeploymentView(){return this.$view[Y1]==="deployment"}isDynamicView(){return this.$view[Y1]==="dynamic"}}class H3{$model;path;title;isRoot;parentPath;defaultViewId;constructor(r,n,o){this.$model=r,this.path=n.join("/"),this.isRoot=this.path==="",this.title=o8e(n),this.isRoot?this.parentPath=void 0:this.parentPath=n.slice(0,-1).join("/"),this.defaultViewId=o}get defaultView(){return this.defaultViewId?this.$model.view(this.defaultViewId):null}get breadcrumbs(){return nt(!this.isRoot,"Root view folder has no breadcrumbs"),cr(this,"breadcrumbs",()=>{const r=this.parent;return r?r.isRoot?[r,this]:[...r.breadcrumbs,this]:[this]})}get parent(){return nt(!this.isRoot,"Root view folder has no parent"),Gh(this.parentPath)?null:this.$model.viewFolder(this.parentPath)}get children(){return this.$model.viewFolderItems(this.path)}get folders(){return cr(this,"folders",()=>{const r=[];for(const n of this.children)n instanceof H3&&r.push(n);return r})}get views(){return cr(this,"views",()=>{const r=[];for(const n of this.children)n instanceof q8&&r.push(n);return r})}}class Dd{Aux;_elements=new Map;_parents=new Map;_children=new so(()=>new Set);_rootElements=new Set;_relations=new Map;_incoming=new so(()=>new Set);_outgoing=new so(()=>new Set);_internal=new so(()=>new Set);_views=new Map;_rootViewFolder;_viewFolders=new Map;_viewFolderItems=new so(()=>new Set);_allTags=new so(()=>new Set);static fromParsed(r){return new Dd(r).asParsed}static create(r){return new Dd(r)}static fromDump(r){const{_stage:n="layouted",projectId:o="unknown",project:a,globals:i,imports:l,deployments:s,views:c,relations:u,elements:d,specification:p}=r;return new Dd({[V1]:n,projectId:o,project:a,globals:{predicates:i?.predicates??{},dynamicPredicates:i?.dynamicPredicates??{},styles:i?.styles??{}},imports:l??{},deployments:{elements:s?.elements??{},relations:s?.relations??{}},views:c??{},relations:u??{},elements:d??{},specification:p})}deployment;$data;constructor(r){this.$data=r;for(const[,n]of xj(r.elements)){const o=this.addElement(n);for(const a of o.tags)this._allTags.get(a).add(o)}for(const[n,o]of xj(r.imports??{}))for(const a of Vc(o)){const i=this.addImportedElement(n,a);for(const l of i.tags)this._allTags.get(l).add(i)}for(const n of B3(r.relations)){const o=this.addRelation(n);for(const a of o.tags)this._allTags.get(a).add(o)}if(this.deployment=new p8e(this),rj(r,"computed")||rj(r,"layouted")){const n=NI(ka),o=G1(B3(r.views),ij(i=>({view:i,path:F3(i.title??i.id),folderPath:i.title&&u8e(i.title)||""})),F8((i,l)=>n(i.folderPath,l.folderPath))),a=i=>{let l=this._viewFolders.get(i);if(!l){const s=kj(i,ka);nt(_h(s,1),`View group path "${i}" must have at least one element`);let c;i===""?c=o.find(u=>u.view.id==="index"):c=o.find(u=>u.path===i),l=new H3(this,s,c?.view.id),this._viewFolders.set(i,l)}return l};this._rootViewFolder=a("");for(const{folderPath:i}of o)this._viewFolders.has(i)||kj(i,ka).reduce((l,s)=>{const c=l.join(ka),u=Gh(c)?s:c+ka+s,d=a(u);return this._viewFolderItems.get(c).add(d),l.push(s),l},[]);for(const{view:i,folderPath:l}of o){const s=new q8(this,i,a(l));this._viewFolderItems.get(l).add(s),this._views.set(i.id,s);for(const c of s.tags)this._allTags.get(c).add(s)}}else this._rootViewFolder=new H3(this,[""],void 0),this._viewFolders.set(this._rootViewFolder.path,this._rootViewFolder)}get asParsed(){return this}get asComputed(){return this}get asLayouted(){return this}get $styles(){return cr(this,"styles",()=>TI.from(this.$data.project.styles,this.$data.specification.customColors?{theme:{colors:this.$data.specification.customColors}}:void 0))}isParsed(){return this.stage==="parsed"}isLayouted(){return this.stage==="layouted"}isComputed(){return this.stage==="computed"}get $model(){return this.$data}get stage(){return this.$data[V1]}get projectId(){return this.$data.projectId??"default"}get project(){return this.$data.project??cr(this,Symbol.for("project"),()=>({id:this.projectId}))}get specification(){return this.$data.specification}get globals(){return cr(this,Symbol.for("globals"),()=>({predicates:{...this.$data.globals?.predicates},dynamicPredicates:{...this.$data.globals?.dynamicPredicates},styles:{...this.$data.globals?.styles}}))}element(r){if(r instanceof j3)return r;const n=hr(r);return mt(this._elements.get(n),`Element ${n} not found`)}findElement(r){return this._elements.get(hr(r))??null}roots(){return this._rootElements.values()}elements(){return this._elements.values()}relationships(){return this._relations.values()}relationship(r,n){if(n==="deployment")return this.deployment.relationship(r);const o=hr(r);let a=this._relations.get(o)??null;return a||n==="model"?mt(a,`Model relation ${o} not found`):mt(this.deployment.findRelationship(o),`No model/deployment relation ${o} not found`)}findRelationship(r,n){if(n==="deployment")return this.deployment.findRelationship(r);let o=this._relations.get(hr(r))??null;return o||n==="model"?o:this.deployment.findRelationship(r)}views(){return this._views.values()}view(r){const n=hr(r);return mt(this._views.get(n),`View ${n} not found`)}findView(r){return this._views.get(r)??null}viewFolder(r){return mt(this._viewFolders.get(r),`View folder ${r} not found`)}get rootViewFolder(){return this._rootViewFolder}get hasViewFolders(){return this._viewFolders.size>1}viewFolderItems(r){return nt(this._viewFolders.has(r),`View folder ${r} not found`),this._viewFolderItems.get(r)}parent(r){const n=hr(r);return this._parents.get(n)||null}children(r){const n=hr(r);return this._children.get(n)}*siblings(r){const n=hr(r),o=this._parents.get(n),a=o?this._children.get(o.id).values():this.roots();for(const i of a)i.id!==n&&(yield i)}*ancestors(r){let n=hr(r),o;for(;o=this._parents.get(n);)yield o,n=o.id}*descendants(r){for(const n of this.children(r))yield n,yield*this.descendants(n.id)}*incoming(r,n="all"){const o=hr(r);for(const a of this._incoming.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=hr(r);for(const a of this._outgoing.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}get tags(){return cr(this,"tags",()=>F8([...this._allTags.keys()],r3))}get tagsSortedByUsage(){return cr(this,"tagsSortedByUsage",()=>G1([...this._allTags.entries()],ij(([r,n])=>({tag:r,count:n.size,tagged:n})),F8((r,n)=>r3(r.tag,n.tag)),s8e([i8e("count"),"desc"])))}findByTag(r,n){return Nd(this._allTags.get(r),o=>n==="elements"?o instanceof j3:n==="views"?o instanceof q8:n==="relationships"?o instanceof _j:!0)}*elementsOfKind(r){for(const n of this._elements.values())n.kind===r&&(yield n)}*elementsWhere(r){const n=Ad(r);for(const o of this._elements.values())n(o)&&(yield o)}*relationshipsWhere(r){const n=Ad(r);for(const o of this._relations.values())n(o)&&(yield o)}addElement(r){if(this._elements.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=new j3(this,Object.freeze(r));this._elements.set(n.id,n);const o=n3(n.id);return o?(nt(this._elements.has(o),`Parent ${o} of ${n.id} not found`),this._parents.set(n.id,this.element(o)),this._children.get(o).add(n)):this._rootElements.add(n),n}addImportedElement(r,n){nt(!Zye(n.id),"Imported element already has global FQN");const o=BI(r,n.id);if(this._elements.has(o))throw new Error(`Element ${o} already exists`);const a=new j3(this,Object.freeze({...n,id:o}));this._elements.set(a.id,a);let i=n3(a.id);for(;i;){if(i.includes(".")&&this._elements.has(i))return this._parents.set(a.id,this.element(i)),this._children.get(i).add(a),a;i=n3(i)}return this._rootElements.add(a),a}addRelation(r){if(this._relations.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new _j(this,Object.freeze(r)),{source:o,target:a}=n;this._relations.set(n.id,n),this._incoming.get(a.id).add(n),this._outgoing.get(o.id).add(n);const i=b1(o.id,a.id);if(i)for(const l of[i,...bd(i)])this._internal.get(l).add(n);for(const l of bd(o.id)){if(l===i)break;this._outgoing.get(l).add(n)}for(const l of bd(a.id)){if(l===i)break;this._incoming.get(l).add(n)}return n}}(e=>{e.EMPTY=e.create({_stage:"computed",projectId:"default",project:{id:"default"},specification:{elements:{},relationships:{},deployments:{},tags:{}},globals:{predicates:{},dynamicPredicates:{},styles:{}},deployments:{elements:{},relations:{}},elements:{},relations:{},views:{},imports:{}})})(Dd||(Dd={}));function q3(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var m8e=e=>typeof e=="object"&&e!==null;function Pd(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,n])=>n!==void 0))}var g8e=e=>e==="base";function y8e(e){return e.slice().filter(r=>!g8e(r))}function Ej(e){return String.fromCharCode(e+(e>25?39:97))}function b8e(e){let r="",n;for(n=Math.abs(e);n>52;n=n/52|0)r=Ej(n%52)+r;return Ej(n%52)+r}function v8e(e,r){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n);return e}function x8e(e){return b8e(v8e(5381,e)>>>0)}var Sj=/\s*!(important)?/i;function w8e(e){return typeof e=="string"?Sj.test(e):!1}function k8e(e){return typeof e=="string"?e.replace(Sj,"").trim():e}function U8(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var co=e=>{const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}},_8e=new Set(["__proto__","constructor","prototype"]);function V8(...e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{if(_8e.has(o))return;const a=r[o],i=n[o];q3(a)&&q3(i)?r[o]=V8(a,i):r[o]=i}),r),{})}var E8e=e=>e!=null;function Y8(e,r,n={}){const{stop:o,getKey:a}=n;function i(l,s=[]){if(m8e(l)){const c={};for(const[u,d]of Object.entries(l)){const p=a?.(u,d)??u,f=[...s,p];if(o?.(l,f))return r(l,s);const g=i(d,f);E8e(g)&&(c[p]=g)}return c}return r(l,s)}return i(e)}function S8e(e,r){return Array.isArray(e)?e.map(n=>r(n)):q3(e)?Y8(e,n=>r(n)):r(e)}function C8e(e,r){return e.reduce((n,o,a)=>{const i=r[a];return o!=null&&(n[i]=o),n},{})}function Cj(e,r,n=!0){const{utility:o,conditions:a}=r,{hasShorthand:i,resolveShorthand:l}=o;return Y8(e,s=>Array.isArray(s)?C8e(s,a.breakpoints.keys):s,{stop:s=>Array.isArray(s),getKey:n?s=>i?l(s):s:void 0})}var T8e={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},R8e=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function Tj(e){const{utility:r,hash:n,conditions:o=T8e}=e,a=l=>[r.prefix,l].filter(Boolean).join("-"),i=(l,s)=>{let c;if(n){const u=[...o.finalize(l),s];c=a(r.toHash(u,x8e))}else c=[...o.finalize(l),a(s)].join(":");return c};return co(({base:l,...s}={})=>{const c=Object.assign(s,l),u=Cj(c,e),d=new Set;return Y8(u,(p,f)=>{if(p==null)return;const g=w8e(p),[b,...x]=o.shift(f),w=y8e(x),k=r.transform(b,k8e(R8e(p)));let C=i(w,k.className);g&&(C=`${C}!`),d.add(C)}),Array.from(d).join(" ")})}function A8e(...e){return e.flat().filter(r=>q3(r)&&Object.keys(Pd(r)).length>0)}function N8e(e){function r(a){const i=A8e(...a);return i.length===1?i:i.map(l=>Cj(l,e))}function n(...a){return V8(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:co(n),assignCss:o}}var D8e=/([A-Z])/g,P8e=/^ms-/,$8e=co(e=>e.startsWith("--")?e:e.replace(D8e,"-$1").replace(P8e,"-ms-").toLowerCase()),M8e=["min","max","clamp","calc"],O8e=new RegExp(`^(${M8e.join("|")})\\(.*\\)`),I8e=e=>typeof e=="string"&&O8e.test(e),L8e="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",z8e=`(?:${L8e.split(",").join("|")})`,B8e=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${z8e}$`),j8e=e=>typeof e=="string"&&B8e.test(e),F8e=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),Z1={map:S8e,isCssFunction:I8e,isCssVar:F8e,isCssUnit:j8e},Q1=(e,r)=>{if(!e?.defaultValues)return r;const n=typeof e.defaultValues=="function"?e.defaultValues(r):e.defaultValues;return Object.assign({},n,Pd(r))},H8e=(e={})=>{const r=o=>({className:[e.className,o].filter(Boolean).join("__"),base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?W8(e.compoundVariants,o):[]}),n=(e.slots??[]).map(o=>[o,r(o)]);for(const[o,a]of Object.entries(e.variants??{}))for(const[i,l]of Object.entries(a))n.forEach(([s,c])=>{c.variants[o]??={},c.variants[o][i]=l[s]??{}});return Object.fromEntries(n)},W8=(e,r)=>e.filter(n=>n.css[r]).map(n=>({...n,css:n.css[r]}));function Yn(e,...r){const n=Object.getOwnPropertyDescriptors(e),o=Object.keys(n),a=l=>{const s={};for(let c=0;ca(Array.isArray(l)?l:o.filter(l));return r.map(i).concat(a(o))}var G8=(...e)=>{const r=e.reduce((n,o)=>(o&&o.forEach(a=>n.add(a)),n),new Set([]));return Array.from(r)},Rj=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function q8e(e){return Rj.includes(e)?e.replace("html","").toLowerCase():e}function X8(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[q8e(r),n]))}X8.keys=Rj;const U8e="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base",Aj=new Set(U8e.split(",")),V8e=/^@|&|&$/;function Nj(e){return Aj.has(e)||V8e.test(e)}const Y8e=/^_/,W8e=/&|@/;function Dj(e){return e.map(r=>Aj.has(r)?r.replace(Y8e,""):W8e.test(r)?`[${U8(r.trim())}]`:r)}function Pj(e){return e.sort((r,n)=>{const o=Nj(r),a=Nj(n);return o&&!a?1:!o&&a?-1:0})}const G8e="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle",$j=new Map,Mj=new Map;G8e.split(",").forEach(e=>{const[r,n]=e.split(":"),[o,...a]=n.split("/");$j.set(r,o),a.length&&a.forEach(i=>{Mj.set(i==="1"?o:i,r)})});const Oj=e=>Mj.get(e)||e,Ij={conditions:{shift:Pj,finalize:Dj,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{transform:(e,r)=>{const n=Oj(e);return{className:`${$j.get(n)||$8e(n)}_${U8(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:Oj}},X8e=Tj(Ij),ye=(...e)=>X8e($d(...e));ye.raw=(...e)=>$d(...e);const{mergeCss:$d}=N8e(Ij);function Je(){let e="",r=0,n;for(;r({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function J1(e){const{base:r,variants:n,defaultVariants:o,compoundVariants:a}=Lj(e),i=f=>({...o,...Pd(f)});function l(f={}){const g=i(f);let b={...r};for(const[w,k]of Object.entries(g))n[w]?.[k]&&(b=$d(b,n[w][k]));const x=K8(a,g);return $d(b,x)}function s(f){const g=Lj(f.config),b=G8(f.variantKeys,Object.keys(n));return J1({base:$d(r,g.base),variants:Object.fromEntries(b.map(x=>[x,$d(n[x],g.variants[x])])),defaultVariants:V8(o,g.defaultVariants),compoundVariants:[...a,...g.compoundVariants]})}function c(f){return ye(l(f))}const u=Object.keys(n);function d(f){return Yn(f,u)}const p=Object.fromEntries(Object.entries(n).map(([f,g])=>[f,Object.keys(g)]));return Object.assign(co(c),{__cva__:!0,variantMap:p,variantKeys:u,raw:l,config:e,merge:s,splitVariantProps:d,getVariantProps:i})}function K8(e,r){let n={};return e.forEach(o=>{Object.entries(o).every(([a,i])=>a==="css"?!0:(Array.isArray(i)?i:[i]).some(l=>r[a]===l))&&(n=$d(n,o.css))}),n}function K8e(e,r,n,o){if(r.length>0&&typeof n?.[o]=="object")throw new Error(`[recipe:${e}:${o}] Conditions are not supported when using compound variants.`)}function Z8e(e){const r=Object.entries(H8e(e)).map(([p,f])=>[p,J1(f)]),n=e.defaultVariants??{},o=r.reduce((p,[f,g])=>(e.className&&(p[f]=g.config.className),p),{});function a(p){const f=r.map(([g,b])=>[g,Je(b(p),o[g])]);return Object.fromEntries(f)}function i(p){const f=r.map(([g,b])=>[g,b.raw(p)]);return Object.fromEntries(f)}const l=e.variants??{},s=Object.keys(l);function c(p){return Yn(p,s)}const u=p=>({...n,...Pd(p)}),d=Object.fromEntries(Object.entries(l).map(([p,f])=>[p,Object.keys(f)]));return Object.assign(co(a),{__cva__:!1,raw:i,config:e,variantMap:d,variantKeys:s,classNameMap:o,splitVariantProps:c,getVariantProps:u})}/**
* @license @tabler/icons-react v3.35.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
- */var QEe={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
+ */var Q8e={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
* @license @tabler/icons-react v3.35.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
- */const yt=(e,r,n,o)=>{const a=E.forwardRef(({color:i="currentColor",size:l=24,stroke:s=2,title:c,className:u,children:d,...p},f)=>E.createElement("svg",{ref:f,...QEe[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${r}`,u].join(" "),...e==="filled"?{fill:i}:{strokeWidth:s,stroke:i},...p},[c&&E.createElement("title",{key:"svg-title"},c),...o.map(([g,b])=>E.createElement(g,b)),...Array.isArray(d)?d:[d]]));return a.displayName=`${n}`,a};/**
+ */const yt=(e,r,n,o)=>{const a=E.forwardRef(({color:i="currentColor",size:l=24,stroke:s=2,title:c,className:u,children:d,...p},f)=>E.createElement("svg",{ref:f,...Q8e[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${r}`,u].join(" "),...e==="filled"?{fill:i}:{strokeWidth:s,stroke:i},...p},[c&&E.createElement("title",{key:"svg-title"},c),...o.map(([g,b])=>E.createElement(g,b)),...Array.isArray(d)?d:[d]]));return a.displayName=`${n}`,a};/**
* @license @tabler/icons-react v3.35.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
- */const JEe=[["path",{d:"M12 6m-7 0a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",key:"svg-1"}]],zB=yt("outline","cylinder","Cylinder",JEe);/**
+ */const J8e=[["path",{d:"M12 6m-7 0a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",key:"svg-1"}]],zj=yt("outline","cylinder","Cylinder",J8e);/**
* @license @tabler/icons-react v3.35.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
- */const e8e=[["path",{d:"M21 14.008v-5.018a1.98 1.98 0 0 0 -1 -1.717l-4 -2.008a2.016 2.016 0 0 0 -2 0l-10 5.008c-.619 .355 -1 1.01 -1 1.718v5.018c0 .709 .381 1.363 1 1.717l4 2.008a2.016 2.016 0 0 0 2 0l10 -5.008c.619 -.355 1 -1.01 1 -1.718z",key:"svg-0"}],["path",{d:"M9 21v-7.5",key:"svg-1"}],["path",{d:"M9 13.5l11.5 -5.5",key:"svg-2"}],["path",{d:"M3.5 11l5.5 2.5",key:"svg-3"}]],t8e=yt("outline","rectangular-prism","RectangularPrism",e8e);/**
+ */const eEe=[["path",{d:"M21 14.008v-5.018a1.98 1.98 0 0 0 -1 -1.717l-4 -2.008a2.016 2.016 0 0 0 -2 0l-10 5.008c-.619 .355 -1 1.01 -1 1.718v5.018c0 .709 .381 1.363 1 1.717l4 2.008a2.016 2.016 0 0 0 2 0l10 -5.008c.619 -.355 1 -1.01 1 -1.718z",key:"svg-0"}],["path",{d:"M9 21v-7.5",key:"svg-1"}],["path",{d:"M9 13.5l11.5 -5.5",key:"svg-2"}],["path",{d:"M3.5 11l5.5 2.5",key:"svg-3"}]],tEe=yt("outline","rectangular-prism","RectangularPrism",eEe);/**
* @license @tabler/icons-react v3.35.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
- */const r8e=[["path",{d:"M3 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M17 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M5 11v-3a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v3",key:"svg-3"}],["path",{d:"M16.5 8.5l2.5 2.5l2.5 -2.5",key:"svg-4"}]],n8e=yt("outline","reorder","Reorder",r8e);/**
+ */const rEe=[["path",{d:"M3 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M17 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M5 11v-3a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v3",key:"svg-3"}],["path",{d:"M16.5 8.5l2.5 2.5l2.5 -2.5",key:"svg-4"}]],nEe=yt("outline","reorder","Reorder",rEe);/**
* @license @tabler/icons-react v3.35.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
- */const o8e=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],a8e=yt("outline","user","User",o8e);/**
+ */const oEe=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],aEe=yt("outline","user","User",oEe);/**
* @license @tabler/icons-react v3.35.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
- */const i8e=[["path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M11 4h2",key:"svg-1"}],["path",{d:"M12 17v.01",key:"svg-2"}]],l8e=yt("outline","device-mobile","DeviceMobile",i8e);/**
+ */const iEe=[["path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M11 4h2",key:"svg-1"}],["path",{d:"M12 17v.01",key:"svg-2"}]],lEe=yt("outline","device-mobile","DeviceMobile",iEe);/**
* @license @tabler/icons-react v3.35.0 - MIT
*
* This source code is licensed under the MIT license.
* See the LICENSE file in the root directory of this source tree.
- */const s8e=[["path",{d:"M4 8h16",key:"svg-0"}],["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M8 4v4",key:"svg-2"}]],c8e=yt("outline","browser","Browser",s8e),ZE=E.createContext(null);function u8e({value:e,children:r}){return E.useContext(ZE)?y.jsx(y.Fragment,{children:r}):y.jsx(ZE.Provider,{value:e,children:r})}function q3({element:e,className:r,style:n}){const o=E.useContext(ZE);if(!e||!e.icon||e.icon==="none")return null;let a;return e.icon.startsWith("http://")||e.icon.startsWith("https://")?a=y.jsx("img",{src:e.icon,alt:e.title}):o&&(a=y.jsx(o,{node:e})),a?y.jsx("div",{className:Je(r,"likec4-element-icon"),"data-likec4-icon":e.icon,style:n,children:a}):null}const d8e={browser:c8e,cylinder:zB,mobile:l8e,person:a8e,queue:n8e,rectangle:t8e,storage:zB};function p8e({element:e,className:r}){const n=y.jsx(q3,{element:e,className:r});if(n)return n;const o=d8e[e.shape];return y.jsx("div",{className:Je(r,"likec4-shape-icon"),children:y.jsx(o,{})})}function Xh(e){const r=E.useRef(e);return r.current=e,E.useMemo(()=>Object.freeze({get current(){return r.current}}),[])}function jB(e){const r=Xh(e);E.useEffect(()=>()=>{r.current()},[])}function V3(e,r,n,o=0){const a=E.useRef(void 0),i=E.useRef(void 0),l=E.useRef(e),s=E.useRef(void 0),c=()=>{a.current&&(clearTimeout(a.current),a.current=void 0),i.current&&(clearTimeout(i.current),i.current=void 0)};return jB(c),E.useEffect(()=>{l.current=e},r),E.useMemo(()=>{const u=()=>{if(c(),!s.current)return;const p=s.current;s.current=void 0,l.current.apply(p.this,p.args)},d=function(...p){a.current&&clearTimeout(a.current),s.current={args:p,this:this},a.current=setTimeout(u,n),o>0&&!i.current&&(i.current=setTimeout(u,o))};return Object.defineProperties(d,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__debounced__${n}`}}),d},[n,o,...r])}const h8e=()=>{},Y3=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function f8e(e){const r=Xh(e),n=E.useRef(0),o=E.useCallback(()=>{Y3&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return jB(o),[E.useMemo(()=>{const a=(...i)=>{Y3&&(o(),n.current=requestAnimationFrame(()=>{r.current(...i),n.current=0}))};return Object.defineProperties(a,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__raf`}}),a},[]),o]}const m8e=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n])return!1;return!0};function BB(e,r,n=m8e,o=E.useEffect,...a){const i=E.useRef(void 0);(i.current===void 0||Y3&&!n(i.current,r))&&(i.current=r),o(e,i.current,...a)}function g8e(e,r,n,o=0){E.useEffect(V3(e,r,n,o),r)}function FB(){const e=E.useRef(!0);return E.useEffect(()=>{e.current=!1},[]),e.current}const QE=Y3?E.useLayoutEffect:E.useEffect;function y8e(e){E.useEffect(()=>{e()},[])}function HB(e,r){const[n,o]=f8e(e);E.useEffect(()=>(n(),o),r)}const b8e=e=>(e+1)%Number.MAX_SAFE_INTEGER;function v8e(){const[,e]=E.useState(0);return E.useCallback(()=>{e(b8e)},[])}function UB(e,r){const n=FB();E.useEffect(n?h8e:e,r)}const x8e=e=>{e&&clearTimeout(e)};function W3(e,r){const n=Xh(e),o=Xh(r),a=E.useRef(null),i=E.useCallback(()=>{x8e(a.current)},[]),l=E.useCallback(()=>{o.current!==void 0&&(i(),a.current=setTimeout(()=>{n.current()},o.current))},[]);return E.useEffect(()=>(l(),i),[r]),[i,l]}const qB=(e,r,n)=>{const o=E.useRef(void 0);return(o.current===void 0||!n(o.current,r))&&(o.current=r),E.useMemo(e,o.current)};function an(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n{}};function G3(){for(var e=0,r=arguments.length,n={},o;e=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}X3.prototype=G3.prototype={constructor:X3,on:function(e,r){var n=this._,o=k8e(e+"",n),a,i=-1,l=o.length;if(arguments.length<2){for(;++i0)for(var n=new Array(a),o=0,a,i;o=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),YB.hasOwnProperty(r)?{space:YB[r],local:e}:e}function E8e(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===JE&&r.documentElement.namespaceURI===JE?r.createElement(e):r.createElementNS(n,e)}}function S8e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function WB(e){var r=K3(e);return(r.local?S8e:E8e)(r)}function C8e(){}function e8(e){return e==null?C8e:function(){return this.querySelector(e)}}function T8e(e){typeof e!="function"&&(e=e8(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a=_&&(_=C+1);!(R=w[_])&&++_=0;)(l=o[a])&&(i&&l.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(l,i),i=l);return this}function Q8e(e){e||(e=J8e);function r(p,f){return p&&f?e(p.__data__,f.__data__):!p-!f}for(var n=this._groups,o=n.length,a=new Array(o),i=0;ir?1:e>=r?0:NaN}function e9e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function t9e(){return Array.from(this)}function r9e(){for(var e=this._groups,r=0,n=e.length;r1?this.each((r==null?h9e:typeof r=="function"?m9e:f9e)(e,r,n??"")):Kh(this.node(),e)}function Kh(e,r){return e.style.getPropertyValue(r)||QB(e).getComputedStyle(e,null).getPropertyValue(r)}function y9e(e){return function(){delete this[e]}}function b9e(e,r){return function(){this[e]=r}}function v9e(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function x9e(e,r){return arguments.length>1?this.each((r==null?y9e:typeof r=="function"?v9e:b9e)(e,r)):this.node()[e]}function JB(e){return e.trim().split(/^|\s+/)}function t8(e){return e.classList||new eF(e)}function eF(e){this._node=e,this._names=JB(e.getAttribute("class")||"")}eF.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tF(e,r){for(var n=t8(e),o=-1,a=r.length;++o=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function G9e(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n()=>e;function n8(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:l,y:s,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}n8.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function o7e(e){return!e.ctrlKey&&!e.button}function a7e(){return this.parentNode}function i7e(e,r){return r??{x:e.x,y:e.y}}function l7e(){return navigator.maxTouchPoints||"ontouchstart"in this}function lF(){var e=o7e,r=a7e,n=i7e,o=l7e,a={},i=G3("start","drag","end"),l=0,s,c,u,d,p=0;function f(T){T.on("mousedown.drag",g).filter(o).on("touchstart.drag",w).on("touchmove.drag",k,n7e).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,R){if(!(d||!e.call(this,T,R))){var A=_(this,r.call(this,T,R),T,R,"mouse");A&&(Ea(T.view).on("mousemove.drag",b,t0).on("mouseup.drag",x,t0),aF(T.view),r8(T),u=!1,s=T.clientX,c=T.clientY,A("start",T))}}function b(T){if(Zh(T),!u){var R=T.clientX-s,A=T.clientY-c;u=R*R+A*A>p}a.mouse("drag",T)}function x(T){Ea(T.view).on("mousemove.drag mouseup.drag",null),iF(T.view,u),Zh(T),a.mouse("end",T)}function w(T,R){if(e.call(this,T,R)){var A=T.changedTouches,D=r.call(this,T,R),N=A.length,P,O;for(P=0;P>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?ex(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?ex(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=c7e.exec(e))?new Qo(r[1],r[2],r[3],1):(r=u7e.exec(e))?new Qo(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=d7e.exec(e))?ex(r[1],r[2],r[3],r[4]):(r=p7e.exec(e))?ex(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=h7e.exec(e))?mF(r[1],r[2]/100,r[3]/100,1):(r=f7e.exec(e))?mF(r[1],r[2]/100,r[3]/100,r[4]):cF.hasOwnProperty(e)?pF(cF[e]):e==="transparent"?new Qo(NaN,NaN,NaN,0):null}function pF(e){return new Qo(e>>16&255,e>>8&255,e&255,1)}function ex(e,r,n,o){return o<=0&&(e=r=n=NaN),new Qo(e,r,n,o)}function y7e(e){return e instanceof r0||(e=Od(e)),e?(e=e.rgb(),new Qo(e.r,e.g,e.b,e.opacity)):new Qo}function a8(e,r,n,o){return arguments.length===1?y7e(e):new Qo(e,r,n,o??1)}function Qo(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}o8(Qo,a8,sF(r0,{brighter(e){return e=e==null?J3:Math.pow(J3,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?n0:Math.pow(n0,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qo(Md(this.r),Md(this.g),Md(this.b),tx(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hF,formatHex:hF,formatHex8:b7e,formatRgb:fF,toString:fF}));function hF(){return`#${Id(this.r)}${Id(this.g)}${Id(this.b)}`}function b7e(){return`#${Id(this.r)}${Id(this.g)}${Id(this.b)}${Id((isNaN(this.opacity)?1:this.opacity)*255)}`}function fF(){const e=tx(this.opacity);return`${e===1?"rgb(":"rgba("}${Md(this.r)}, ${Md(this.g)}, ${Md(this.b)}${e===1?")":`, ${e})`}`}function tx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Md(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Id(e){return e=Md(e),(e<16?"0":"")+e.toString(16)}function mF(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new Vi(e,r,n,o)}function gF(e){if(e instanceof Vi)return new Vi(e.h,e.s,e.l,e.opacity);if(e instanceof r0||(e=Od(e)),!e)return new Vi;if(e instanceof Vi)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),l=NaN,s=i-a,c=(i+a)/2;return s?(r===i?l=(n-o)/s+(n0&&c<1?0:l,new Vi(l,s,c,e.opacity)}function v7e(e,r,n,o){return arguments.length===1?gF(e):new Vi(e,r,n,o??1)}function Vi(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}o8(Vi,v7e,sF(r0,{brighter(e){return e=e==null?J3:Math.pow(J3,e),new Vi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?n0:Math.pow(n0,e),new Vi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new Qo(i8(e>=240?e-240:e+120,a,o),i8(e,a,o),i8(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new Vi(yF(this.h),rx(this.s),rx(this.l),tx(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tx(this.opacity);return`${e===1?"hsl(":"hsla("}${yF(this.h)}, ${rx(this.s)*100}%, ${rx(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yF(e){return e=(e||0)%360,e<0?e+360:e}function rx(e){return Math.max(0,Math.min(1,e||0))}function i8(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const l8=e=>()=>e;function x7e(e,r){return function(n){return e+n*r}}function w7e(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function k7e(e){return(e=+e)==1?bF:function(r,n){return n-r?w7e(r,n,e):l8(isNaN(r)?n:r)}}function bF(e,r){var n=r-e;return n?x7e(e,n):l8(isNaN(e)?r:e)}const nx=(function e(r){var n=k7e(r);function o(a,i){var l=n((a=a8(a)).r,(i=a8(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=bF(a.opacity,i.opacity);return function(d){return a.r=l(d),a.g=s(d),a.b=c(d),a.opacity=u(d),a+""}}return o.gamma=e,o})(1);function _7e(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;an&&(i=r.slice(n,i),s[l]?s[l]+=i:s[++l]=i),(o=o[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,c.push({i:l,x:Kl(o,a)})),n=c8.lastIndex;return n180?d+=360:d-u>180&&(u+=360),f.push({i:p.push(a(p)+"rotate(",null,o)-2,x:Kl(u,d)})):d&&p.push(a(p)+"rotate("+d+o)}function s(u,d,p,f){u!==d?f.push({i:p.push(a(p)+"skewX(",null,o)-2,x:Kl(u,d)}):d&&p.push(a(p)+"skewX("+d+o)}function c(u,d,p,f,g,b){if(u!==p||d!==f){var x=g.push(a(g)+"scale(",null,",",null,")");b.push({i:x-4,x:Kl(u,p)},{i:x-2,x:Kl(d,f)})}else(p!==1||f!==1)&&g.push(a(g)+"scale("+p+","+f+")")}return function(u,d){var p=[],f=[];return u=e(u),d=e(d),i(u.translateX,u.translateY,d.translateX,d.translateY,p,f),l(u.rotate,d.rotate,p,f),s(u.skewX,d.skewX,p,f),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,p,f),u=d=null,function(g){for(var b=-1,x=f.length,w;++b=0&&e._call.call(void 0,r),e=e._next;--Jh}function RF(){Ld=(lx=c0.now())+sx,Jh=i0=0;try{z7e()}finally{Jh=0,B7e(),Ld=0}}function j7e(){var e=c0.now(),r=e-lx;r>SF&&(sx-=r,lx=e)}function B7e(){for(var e,r=ix,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:ix=n);s0=e,d8(o)}function d8(e){if(!Jh){i0&&(i0=clearTimeout(i0));var r=e-Ld;r>24?(e<1/0&&(i0=setTimeout(RF,e-c0.now()-sx)),l0&&(l0=clearInterval(l0))):(l0||(lx=c0.now(),l0=setInterval(j7e,SF)),Jh=1,CF(RF))}}function AF(e,r,n){var o=new cx;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var F7e=G3("start","end","cancel","interrupt"),H7e=[],NF=0,DF=1,p8=2,ux=3,$F=4,h8=5,dx=6;function px(e,r,n,o,a,i){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;U7e(e,n,{name:r,index:o,group:a,on:F7e,tween:H7e,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:NF})}function f8(e,r){var n=Yi(e,r);if(n.state>NF)throw new Error("too late; already scheduled");return n}function Zl(e,r){var n=Yi(e,r);if(n.state>ux)throw new Error("too late; already running");return n}function Yi(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function U7e(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=TF(i,0,n.time);function i(u){n.state=DF,n.timer.restart(l,n.delay,n.time),n.delay<=u&&l(u-n.delay)}function l(u){var d,p,f,g;if(n.state!==DF)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===ux)return AF(l);g.state===$F?(g.state=dx,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+dp8&&o.state=0&&(r=r.slice(0,n)),!r||r==="start"})}function vSe(e,r,n){var o,a,i=bSe(r)?f8:Zl;return function(){var l=i(this,e),s=l.on;s!==o&&(a=(o=s).copy()).on(r,n),l.on=a}}function xSe(e,r){var n=this._id;return arguments.length<2?Yi(this.node(),n).on.on(e):this.each(vSe(n,e,r))}function wSe(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function kSe(){return this.on("end.remove",wSe(this._id))}function _Se(e){var r=this._name,n=this._id;typeof e!="function"&&(e=e8(e));for(var o=this._groups,a=o.length,i=new Array(a),l=0;l()=>e;function GSe(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Hs(e,r,n){this.k=e,this.x=r,this.y=n}Hs.prototype={constructor:Hs,scale:function(e){return e===1?this:new Hs(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new Hs(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mx=new Hs(1,0,0);IF.prototype=Hs.prototype;function IF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return mx;return e.__zoom}function g8(e){e.stopImmediatePropagation()}function u0(e){e.preventDefault(),e.stopImmediatePropagation()}function XSe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function KSe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function LF(){return this.__zoom||mx}function ZSe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function QSe(){return navigator.maxTouchPoints||"ontouchstart"in this}function JSe(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],l=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),l>i?(i+l)/2:Math.min(0,i)||Math.max(0,l))}function zF(){var e=XSe,r=KSe,n=JSe,o=ZSe,a=QSe,i=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],s=250,c=ax,u=G3("start","zoom","end"),d,p,f,g=500,b=150,x=0,w=10;function k(M){M.property("__zoom",LF).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",P).on("dblclick.zoom",O).filter(a).on("touchstart.zoom",B).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(M,q,I,U){var V=M.selection?M.selection():M;V.property("__zoom",LF),M!==V?R(M,q,I,U):V.interrupt().each(function(){A(this,arguments).event(U).start().zoom(null,typeof q=="function"?q.apply(this,arguments):q).end()})},k.scaleBy=function(M,q,I,U){k.scaleTo(M,function(){var V=this.__zoom.k,G=typeof q=="function"?q.apply(this,arguments):q;return V*G},I,U)},k.scaleTo=function(M,q,I,U){k.transform(M,function(){var V=r.apply(this,arguments),G=this.__zoom,F=I==null?T(V):typeof I=="function"?I.apply(this,arguments):I,J=G.invert(F),Q=typeof q=="function"?q.apply(this,arguments):q;return n(_(C(G,Q),F,J),V,l)},I,U)},k.translateBy=function(M,q,I,U){k.transform(M,function(){return n(this.__zoom.translate(typeof q=="function"?q.apply(this,arguments):q,typeof I=="function"?I.apply(this,arguments):I),r.apply(this,arguments),l)},null,U)},k.translateTo=function(M,q,I,U,V){k.transform(M,function(){var G=r.apply(this,arguments),F=this.__zoom,J=U==null?T(G):typeof U=="function"?U.apply(this,arguments):U;return n(mx.translate(J[0],J[1]).scale(F.k).translate(typeof q=="function"?-q.apply(this,arguments):-q,typeof I=="function"?-I.apply(this,arguments):-I),G,l)},U,V)};function C(M,q){return q=Math.max(i[0],Math.min(i[1],q)),q===M.k?M:new Hs(q,M.x,M.y)}function _(M,q,I){var U=q[0]-I[0]*M.k,V=q[1]-I[1]*M.k;return U===M.x&&V===M.y?M:new Hs(M.k,U,V)}function T(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function R(M,q,I,U){M.on("start.zoom",function(){A(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(U).end()}).tween("zoom",function(){var V=this,G=arguments,F=A(V,G).event(U),J=r.apply(V,G),Q=I==null?T(J):typeof I=="function"?I.apply(V,G):I,z=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),W=V.__zoom,X=typeof q=="function"?q.apply(V,G):q,Z=c(W.invert(Q).concat(z/W.k),X.invert(Q).concat(z/X.k));return function(oe){if(oe===1)oe=X;else{var ee=Z(oe),re=z/ee[2];oe=new Hs(re,Q[0]-ee[0]*re,Q[1]-ee[1]*re)}F.zoom(null,oe)}})}function A(M,q,I){return!I&&M.__zooming||new D(M,q)}function D(M,q){this.that=M,this.args=q,this.active=0,this.sourceEvent=null,this.extent=r.apply(M,q),this.taps=0}D.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,q){return this.mouse&&M!=="mouse"&&(this.mouse[1]=q.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=q.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=q.invert(this.touch1[0])),this.that.__zoom=q,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var q=Ea(this.that).datum();u.call(M,this.that,new GSe(M,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),q)}};function N(M,...q){if(!e.apply(this,arguments))return;var I=A(this,q).event(M),U=this.__zoom,V=Math.max(i[0],Math.min(i[1],U.k*Math.pow(2,o.apply(this,arguments)))),G=qi(M);if(I.wheel)(I.mouse[0][0]!==G[0]||I.mouse[0][1]!==G[1])&&(I.mouse[1]=U.invert(I.mouse[0]=G)),clearTimeout(I.wheel);else{if(U.k===V)return;I.mouse=[G,U.invert(G)],hx(this),I.start()}u0(M),I.wheel=setTimeout(F,b),I.zoom("mouse",n(_(C(U,V),I.mouse[0],I.mouse[1]),I.extent,l));function F(){I.wheel=null,I.end()}}function P(M,...q){if(f||!e.apply(this,arguments))return;var I=M.currentTarget,U=A(this,q,!0).event(M),V=Ea(M.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",z,!0),G=qi(M,I),F=M.clientX,J=M.clientY;aF(M.view),g8(M),U.mouse=[G,this.__zoom.invert(G)],hx(this),U.start();function Q(W){if(u0(W),!U.moved){var X=W.clientX-F,Z=W.clientY-J;U.moved=X*X+Z*Z>x}U.event(W).zoom("mouse",n(_(U.that.__zoom,U.mouse[0]=qi(W,I),U.mouse[1]),U.extent,l))}function z(W){V.on("mousemove.zoom mouseup.zoom",null),iF(W.view,U.moved),u0(W),U.event(W).end()}}function O(M,...q){if(e.apply(this,arguments)){var I=this.__zoom,U=qi(M.changedTouches?M.changedTouches[0]:M,this),V=I.invert(U),G=I.k*(M.shiftKey?.5:2),F=n(_(C(I,G),U,V),r.apply(this,q),l);u0(M),s>0?Ea(this).transition().duration(s).call(R,F,U,M):Ea(this).call(k.transform,F,U,M)}}function B(M,...q){if(e.apply(this,arguments)){var I=M.touches,U=I.length,V=A(this,q,M.changedTouches.length===U).event(M),G,F,J,Q;for(g8(M),F=0;F"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},d0=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],jF=["Enter"," ","Escape"],BF={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var ef;(function(e){e.Strict="strict",e.Loose="loose"})(ef||(ef={}));var zd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(zd||(zd={}));var p0;(function(e){e.Partial="partial",e.Full="full"})(p0||(p0={}));const FF={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var eu;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(eu||(eu={}));var gx;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(gx||(gx={}));var tt;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(tt||(tt={}));const HF={[tt.Left]:tt.Right,[tt.Right]:tt.Left,[tt.Top]:tt.Bottom,[tt.Bottom]:tt.Top};function UF(e){return e===null?null:e?"valid":"invalid"}const qF=e=>"id"in e&&"source"in e&&"target"in e,eCe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),y8=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),h0=(e,r=[0,0])=>{const{width:n,height:o}=Wn(e),a=e.origin??r,i=n*a[0],l=o*a[1];return{x:e.position.x-i,y:e.position.y-l}},VF=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let l=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(l=i?r.nodeLookup.get(a):y8(a)?a:r.nodeLookup.get(a.id));const s=l?bx(l,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return yx(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return f0(n)},tf=(e,r={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(o=>{if(r.filter===void 0||r.filter(o)){const a=bx(o);n=yx(n,a)}}),f0(n)},b8=(e,r,[n,o,a]=[0,0,1],i=!1,l=!1)=>{const s={...y0(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const u of e.values()){const{measured:d,selectable:p=!0,hidden:f=!1}=u;if(l&&!p||f)continue;const g=d.width??u.width??u.initialWidth??null,b=d.height??u.height??u.initialHeight??null,x=m0(s,Bd(u)),w=(g??0)*(b??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},tCe=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function rCe(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function nCe({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},l){if(e.size===0)return Promise.resolve(!0);const s=rCe(e,l),c=tf(s),u=tu(c,r,n,l?.minZoom??a,l?.maxZoom??i,l?.padding??.1);return await o.setViewport(u,{duration:l?.duration,ease:l?.ease,interpolate:l?.interpolate}),Promise.resolve(!0)}function YF({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const l=n.get(e),s=l.parentId?n.get(l.parentId):void 0,{x:c,y:u}=s?s.internals.positionAbsolute:{x:0,y:0},d=l.origin??o;let p=l.extent||a;if(l.extent==="parent"&&!l.expandParent)if(!s)i?.("005",Ql.error005());else{const g=s.measured.width,b=s.measured.height;g&&b&&(p=[[c,u],[c+g,u+b]])}else s&&af(l.extent)&&(p=[[l.extent[0][0]+c,l.extent[0][1]+u],[l.extent[1][0]+c,l.extent[1][1]+u]]);const f=af(p)?jd(r,p,l.measured):r;return(l.measured.width===void 0||l.measured.height===void 0)&&i?.("015",Ql.error015()),{position:{x:f.x-c+(l.measured.width??0)*d[0],y:f.y-u+(l.measured.height??0)*d[1]},positionAbsolute:f}}async function oCe({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(p=>p.id)),l=[];for(const p of n){if(p.deletable===!1)continue;const f=i.has(p.id),g=!f&&p.parentId&&l.find(b=>b.id===p.parentId);(f||g)&&l.push(p)}const s=new Set(r.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),u=tCe(l,c);for(const p of c)s.has(p.id)&&!u.find(f=>f.id===p.id)&&u.push(p);if(!a)return{edges:u,nodes:l};const d=await a({nodes:l,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:l}:{edges:[],nodes:[]}:d}const rf=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),jd=(e={x:0,y:0},r,n)=>({x:rf(e.x,r[0][0],r[1][0]-(n?.width??0)),y:rf(e.y,r[0][1],r[1][1]-(n?.height??0))});function WF(e,r,n){const{width:o,height:a}=Wn(n),{x:i,y:l}=n.internals.positionAbsolute;return jd(e,[[i,l],[i+o,l+a]],r)}const GF=(e,r,n)=>en?-rf(Math.abs(e-n),1,r)/r:0,XF=(e,r,n=15,o=40)=>{const a=GF(e.x,o,r.width-o)*n,i=GF(e.y,o,r.height-o)*n;return[a,i]},yx=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),v8=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),f0=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),Bd=(e,r=[0,0])=>{const{x:n,y:o}=y8(e)?e.internals.positionAbsolute:h0(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},bx=(e,r=[0,0])=>{const{x:n,y:o}=y8(e)?e.internals.positionAbsolute:h0(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},vx=(e,r)=>f0(yx(v8(e),v8(r))),m0=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},KF=e=>Wi(e.width)&&Wi(e.height)&&Wi(e.x)&&Wi(e.y),Wi=e=>!isNaN(e)&&isFinite(e),aCe=(e,r)=>{},g0=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),y0=({x:e,y:r},[n,o,a],i=!1,l=[1,1])=>{const s={x:(e-n)/a,y:(r-o)/a};return i?g0(s,l):s},xx=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function nf(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function iCe(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=nf(e,n),a=nf(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=nf(e.top??e.y??0,n),a=nf(e.bottom??e.y??0,n),i=nf(e.left??e.x??0,r),l=nf(e.right??e.x??0,r);return{top:o,right:l,bottom:a,left:i,x:i+l,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function lCe(e,r,n,o,a,i){const{x:l,y:s}=xx(e,[r,n,o]),{x:c,y:u}=xx({x:e.x+e.width,y:e.y+e.height},[r,n,o]),d=a-c,p=i-u;return{left:Math.floor(l),top:Math.floor(s),right:Math.floor(d),bottom:Math.floor(p)}}const tu=(e,r,n,o,a,i)=>{const l=iCe(i,r,n),s=(r-l.x)/e.width,c=(n-l.y)/e.height,u=Math.min(s,c),d=rf(u,o,a),p=e.x+e.width/2,f=e.y+e.height/2,g=r/2-p*d,b=n/2-f*d,x=lCe(e,g,b,d,r,n),w={left:Math.min(x.left-l.left,0),top:Math.min(x.top-l.top,0),right:Math.min(x.right-l.right,0),bottom:Math.min(x.bottom-l.bottom,0)};return{x:g-w.left+w.right,y:b-w.top+w.bottom,zoom:d}},of=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function af(e){return e!=null&&e!=="parent"}function Wn(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function ZF(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function QF(e,r={width:0,height:0},n,o,a){const i={...e},l=o.get(n);if(l){const s=l.origin||a;i.x+=l.internals.positionAbsolute.x-(r.width??0)*s[0],i.y+=l.internals.positionAbsolute.y-(r.height??0)*s[1]}return i}function JF(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function sCe(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function cCe(e){return{...BF,...e||{}}}function b0(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:l}=Gi(e),s=y0({x:i-(a?.left??0),y:l-(a?.top??0)},o),{x:c,y:u}=n?g0(s,r):s;return{xSnapped:c,ySnapped:u,...s}}const x8=e=>({width:e.offsetWidth,height:e.offsetHeight}),eH=e=>e?.getRootNode?.()||window?.document,uCe=["INPUT","SELECT","TEXTAREA"];function tH(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:uCe.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const rH=e=>"clientX"in e,Gi=(e,r)=>{const n=rH(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},nH=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(l=>{const s=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),type:e,nodeId:a,position:l.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...x8(l)}})};function oH({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:l,targetControlY:s}){const c=e*.125+a*.375+l*.375+n*.125,u=r*.125+i*.375+s*.375+o*.125,d=Math.abs(c-e),p=Math.abs(u-r);return[c,u,d,p]}function wx(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function aH({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case tt.Left:return[r-wx(r-o,i),n];case tt.Right:return[r+wx(o-r,i),n];case tt.Top:return[r,n-wx(n-a,i)];case tt.Bottom:return[r,n+wx(a-n,i)]}}function kx({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,curvature:l=.25}){const[s,c]=aH({pos:n,x1:e,y1:r,x2:o,y2:a,c:l}),[u,d]=aH({pos:i,x1:o,y1:a,x2:e,y2:r,c:l}),[p,f,g,b]=oH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${r} C${s},${c} ${u},${d} ${o},${a}`,p,f,g,b]}function iH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n0}const hCe=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,fCe=(e,r)=>r.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),mCe=(e,r)=>{if(!e.source||!e.target)return r;let n;return qF(e)?n={...e}:n={...e,id:hCe(e)},fCe(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function lH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,l,s]=iH({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,l,s]}const sH={[tt.Left]:{x:-1,y:0},[tt.Right]:{x:1,y:0},[tt.Top]:{x:0,y:-1},[tt.Bottom]:{x:0,y:1}},gCe=({source:e,sourcePosition:r=tt.Bottom,target:n})=>r===tt.Left||r===tt.Right?e.xMath.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function yCe({source:e,sourcePosition:r=tt.Bottom,target:n,targetPosition:o=tt.Top,center:a,offset:i,stepPosition:l}){const s=sH[r],c=sH[o],u={x:e.x+s.x*i,y:e.y+s.y*i},d={x:n.x+c.x*i,y:n.y+c.y*i},p=gCe({source:u,sourcePosition:r,target:d}),f=p.x!==0?"x":"y",g=p[f];let b=[],x,w;const k={x:0,y:0},C={x:0,y:0},[,,_,T]=iH({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*c[f]===-1){f==="x"?(x=a.x??u.x+(d.x-u.x)*l,w=a.y??(u.y+d.y)/2):(x=a.x??(u.x+d.x)/2,w=a.y??u.y+(d.y-u.y)*l);const R=[{x,y:u.y},{x,y:d.y}],A=[{x:u.x,y:w},{x:d.x,y:w}];s[f]===g?b=f==="x"?R:A:b=f==="x"?A:R}else{const R=[{x:u.x,y:d.y}],A=[{x:d.x,y:u.y}];if(f==="x"?b=s.x===g?A:R:b=s.y===g?R:A,r===o){const B=Math.abs(e[f]-n[f]);if(B<=i){const L=Math.min(i-1,i-B);s[f]===g?k[f]=(u[f]>e[f]?-1:1)*L:C[f]=(d[f]>n[f]?-1:1)*L}}if(r!==o){const B=f==="x"?"y":"x",L=s[f]===c[B],Y=u[B]>d[B],M=u[B]=O?(x=(D.x+N.x)/2,w=b[0].y):(x=b[0].x,w=(D.y+N.y)/2)}return[[e,{x:u.x+k.x,y:u.y+k.y},...b,{x:d.x+C.x,y:d.y+C.y},n],x,w,_,T]}function bCe(e,r,n,o){const a=Math.min(cH(e,r)/2,cH(r,n)/2,o),{x:i,y:l}=r;if(e.x===i&&i===n.x||e.y===l&&l===n.y)return`L${i} ${l}`;if(e.y===l){const u=e.x{let _="";return C>0&&Cn.id===r):e[0])||null}function w8(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function vCe(e,{id:r,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:a}){const i=new Set;return e.reduce((l,s)=>([s.markerStart||o,s.markerEnd||a].forEach(c=>{if(c&&typeof c=="object"){const u=w8(c,r);i.has(u)||(l.push({id:u,color:c.color||n,...c}),i.add(u))}}),l),[]).sort((l,s)=>l.id.localeCompare(s.id))}function xCe(e,r,n,o,a){let i=.5;a==="start"?i=0:a==="end"&&(i=1);let l=[(e.x+e.width*i)*r.zoom+r.x,e.y*r.zoom+r.y-o],s=[-100*i,-100];switch(n){case tt.Right:l=[(e.x+e.width)*r.zoom+r.x+o,(e.y+e.height*i)*r.zoom+r.y],s=[0,-100*i];break;case tt.Bottom:l[1]=(e.y+e.height)*r.zoom+r.y+o,s[1]=0;break;case tt.Left:l=[e.x*r.zoom+r.x-o,(e.y+e.height*i)*r.zoom+r.y],s=[-100,-100*i];break}return`translate(${l[0]}px, ${l[1]}px) translate(${s[0]}%, ${s[1]}%)`}const k8={nodeOrigin:[0,0],nodeExtent:d0,elevateNodesOnSelect:!0,defaults:{}},wCe={...k8,checkEquality:!0};function _8(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function kCe(e,r,n){const o=_8(k8,n);for(const a of e.values())if(a.parentId)S8(a,e,r,o);else{const i=h0(a,o.nodeOrigin),l=af(a.extent)?a.extent:o.nodeExtent,s=jd(i,l,Wn(a));a.internals.positionAbsolute=s}}function _Ce(e,r){if(!e.handles)return e.measured?r?.internals.handleBounds:void 0;const n=[],o=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&o.push(i)}return{source:n,target:o}}function E8(e,r,n,o){const a=_8(wCe,o);let i=e.length>0;const l=new Map(r),s=a?.elevateNodesOnSelect?1e3:0;r.clear(),n.clear();for(const c of e){let u=l.get(c.id);if(a.checkEquality&&c===u?.internals.userNode)r.set(c.id,u);else{const d=h0(c,a.nodeOrigin),p=af(c.extent)?c.extent:a.nodeExtent,f=jd(d,p,Wn(c));u={...a.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:f,handleBounds:_Ce(c,u),z:fH(c,s),userNode:c}},r.set(c.id,u)}(u.measured===void 0||u.measured.width===void 0||u.measured.height===void 0)&&!u.hidden&&(i=!1),c.parentId&&S8(u,r,n,o)}return i}function ECe(e,r){if(!e.parentId)return;const n=r.get(e.parentId);n?n.set(e.id,e):r.set(e.parentId,new Map([[e.id,e]]))}function S8(e,r,n,o){const{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:l}=_8(k8,o),s=e.parentId,c=r.get(s);if(!c){console.warn(`Parent node ${s} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}ECe(e,n);const u=a?1e3:0,{x:d,y:p,z:f}=SCe(e,c,i,l,u),{positionAbsolute:g}=e.internals,b=d!==g.x||p!==g.y;(b||f!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:b?{x:d,y:p}:g,z:f}})}function fH(e,r){return(Wi(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function SCe(e,r,n,o,a){const{x:i,y:l}=r.internals.positionAbsolute,s=Wn(e),c=h0(e,n),u=af(e.extent)?jd(c,e.extent,s):c;let d=jd({x:i+u.x,y:l+u.y},o,s);e.extent==="parent"&&(d=WF(d,s,r));const p=fH(e,a),f=r.internals.z??0;return{x:d.x,y:d.y,z:f>=p?f+1:p}}function C8(e,r,n,o=[0,0]){const a=[],i=new Map;for(const l of e){const s=r.get(l.parentId);if(!s)continue;const c=i.get(l.parentId)?.expandedRect??Bd(s),u=vx(c,l.rect);i.set(l.parentId,{expandedRect:u,parent:s})}return i.size>0&&i.forEach(({expandedRect:l,parent:s},c)=>{const u=s.internals.positionAbsolute,d=Wn(s),p=s.origin??o,f=l.x0||g>0||w||k)&&(a.push({id:c,type:"position",position:{x:s.position.x-f+w,y:s.position.y-g+k}}),n.get(c)?.forEach(C=>{e.some(_=>_.id===C.id)||a.push({id:C.id,type:"position",position:{x:C.position.x+f,y:C.position.y+g}})})),(d.width0){const f=C8(p,r,n,a);c.push(...f)}return{changes:c,updatedInternals:s}}async function TCe({delta:e,panZoom:r,transform:n,translateExtent:o,width:a,height:i}){if(!r||!e.x&&!e.y)return Promise.resolve(!1);const l=await r.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],o),s=!!l&&(l.x!==n[0]||l.y!==n[1]||l.k!==n[2]);return Promise.resolve(s)}function mH(e,r,n,o,a,i){let l=a;const s=o.get(l)||new Map;o.set(l,s.set(n,r)),l=`${a}-${e}`;const c=o.get(l)||new Map;if(o.set(l,c.set(n,r)),i){l=`${a}-${e}-${i}`;const u=o.get(l)||new Map;o.set(l,u.set(n,r))}}function gH(e,r,n){e.clear(),r.clear();for(const o of n){const{source:a,target:i,sourceHandle:l=null,targetHandle:s=null}=o,c={edgeId:o.id,source:a,target:i,sourceHandle:l,targetHandle:s},u=`${a}-${l}--${i}-${s}`,d=`${i}-${s}--${a}-${l}`;mH("source",c,d,e,a,l),mH("target",c,u,e,i,s),r.set(o.id,o)}}function yH(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:yH(n,r):!1}function bH(e,r,n){let o=e;do{if(o?.matches?.(r))return!0;if(o===n)return!1;o=o?.parentElement}while(o);return!1}function RCe(e,r,n,o){const a=new Map;for(const[i,l]of e)if((l.selected||l.id===o)&&(!l.parentId||!yH(l,e))&&(l.draggable||r&&typeof l.draggable>"u")){const s=e.get(i);s&&a.set(i,{id:i,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return a}function T8({nodeId:e,dragItems:r,nodeLookup:n,dragging:o=!0}){const a=[];for(const[l,s]of r){const c=n.get(l)?.internals.userNode;c&&a.push({...c,position:s.position,dragging:o})}if(!e)return[a[0],a];const i=n.get(e)?.internals.userNode;return[i?{...i,position:r.get(e)?.position||i.position,dragging:o}:a[0],a]}function ACe({dragItems:e,snapGrid:r,x:n,y:o}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:o-a.distance.y},l=g0(i,r);return{x:l.x-i.x,y:l.y-i.y}}function NCe({onNodeMouseDown:e,getStoreItems:r,onDragStart:n,onDrag:o,onDragStop:a}){let i={x:null,y:null},l=0,s=new Map,c=!1,u={x:0,y:0},d=null,p=!1,f=null,g=!1,b=!1,x=null;function w({noDragClassName:C,handleSelector:_,domNode:T,isSelectable:R,nodeId:A,nodeClickDistance:D=0}){f=Ea(T);function N({x:L,y:Y}){const{nodeLookup:M,nodeExtent:q,snapGrid:I,snapToGrid:U,nodeOrigin:V,onNodeDrag:G,onSelectionDrag:F,onError:J,updateNodePositions:Q}=r();i={x:L,y:Y};let z=!1;const W=s.size>1,X=W&&q?v8(tf(s)):null,Z=W&&U?ACe({dragItems:s,snapGrid:I,x:L,y:Y}):null;for(const[oe,ee]of s){if(!M.has(oe))continue;let re={x:L-ee.distance.x,y:Y-ee.distance.y};U&&(re=Z?{x:Math.round(re.x+Z.x),y:Math.round(re.y+Z.y)}:g0(re,I));let pe=null;if(W&&q&&!ee.extent&&X){const{positionAbsolute:de}=ee.internals,be=de.x-X.x+q[0][0],Me=de.x+ee.measured.width-X.x2+q[1][0],Xe=de.y-X.y+q[0][1],Ge=de.y+ee.measured.height-X.y2+q[1][1];pe=[[be,Xe],[Me,Ge]]}const{position:Ce,positionAbsolute:ce}=YF({nodeId:oe,nextPosition:re,nodeLookup:M,nodeExtent:pe||q,nodeOrigin:V,onError:J});z=z||ee.position.x!==Ce.x||ee.position.y!==Ce.y,ee.position=Ce,ee.internals.positionAbsolute=ce}if(b=b||z,!!z&&(Q(s,!0),x&&(o||G||!A&&F))){const[oe,ee]=T8({nodeId:A,dragItems:s,nodeLookup:M});o?.(x,s,oe,ee),G?.(x,oe,ee),A||F?.(x,ee)}}async function P(){if(!d)return;const{transform:L,panBy:Y,autoPanSpeed:M,autoPanOnNodeDrag:q}=r();if(!q){c=!1,cancelAnimationFrame(l);return}const[I,U]=XF(u,d,M);(I!==0||U!==0)&&(i.x=(i.x??0)-I/L[2],i.y=(i.y??0)-U/L[2],await Y({x:I,y:U})&&N(i)),l=requestAnimationFrame(P)}function O(L){const{nodeLookup:Y,multiSelectionActive:M,nodesDraggable:q,transform:I,snapGrid:U,snapToGrid:V,selectNodesOnDrag:G,onNodeDragStart:F,onSelectionDragStart:J,unselectNodesAndEdges:Q}=r();p=!0,(!G||!R)&&!M&&A&&(Y.get(A)?.selected||Q()),R&&G&&A&&e?.(A);const z=b0(L.sourceEvent,{transform:I,snapGrid:U,snapToGrid:V,containerBounds:d});if(i=z,s=RCe(Y,q,z,A),s.size>0&&(n||F||!A&&J)){const[W,X]=T8({nodeId:A,dragItems:s,nodeLookup:Y});n?.(L.sourceEvent,s,W,X),F?.(L.sourceEvent,W,X),A||J?.(L.sourceEvent,X)}}const B=lF().clickDistance(D).on("start",L=>{const{domNode:Y,nodeDragThreshold:M,transform:q,snapGrid:I,snapToGrid:U}=r();d=Y?.getBoundingClientRect()||null,g=!1,b=!1,x=L.sourceEvent,M===0&&O(L),i=b0(L.sourceEvent,{transform:q,snapGrid:I,snapToGrid:U,containerBounds:d}),u=Gi(L.sourceEvent,d)}).on("drag",L=>{const{autoPanOnNodeDrag:Y,transform:M,snapGrid:q,snapToGrid:I,nodeDragThreshold:U,nodeLookup:V}=r(),G=b0(L.sourceEvent,{transform:M,snapGrid:q,snapToGrid:I,containerBounds:d});if(x=L.sourceEvent,(L.sourceEvent.type==="touchmove"&&L.sourceEvent.touches.length>1||A&&!V.has(A))&&(g=!0),!g){if(!c&&Y&&p&&(c=!0,P()),!p){const F=Gi(L.sourceEvent,d),J=F.x-u.x,Q=F.y-u.y;Math.sqrt(J*J+Q*Q)>U&&O(L)}(i.x!==G.xSnapped||i.y!==G.ySnapped)&&s&&p&&(u=Gi(L.sourceEvent,d),N(G))}}).on("end",L=>{if(!(!p||g)&&(c=!1,p=!1,cancelAnimationFrame(l),s.size>0)){const{nodeLookup:Y,updateNodePositions:M,onNodeDragStop:q,onSelectionDragStop:I}=r();if(b&&(M(s,!1),b=!1),a||q||!A&&I){const[U,V]=T8({nodeId:A,dragItems:s,nodeLookup:Y,dragging:!1});a?.(L.sourceEvent,s,U,V),q?.(L.sourceEvent,U,V),A||I?.(L.sourceEvent,V)}}}).filter(L=>{const Y=L.target;return!L.button&&(!C||!bH(Y,`.${C}`,T))&&(!_||bH(Y,_,T))});f.call(B)}function k(){f?.on(".drag",null)}return{update:w,destroy:k}}function DCe(e,r,n){const o=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of r.values())m0(a,Bd(i))>0&&o.push(i);return o}const $Ce=250;function PCe(e,r,n,o){let a=[],i=1/0;const l=DCe(e,n,r+$Ce);for(const s of l){const c=[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]];for(const u of c){if(o.nodeId===u.nodeId&&o.type===u.type&&o.id===u.id)continue;const{x:d,y:p}=v0(s,u,u.position,!0),f=Math.sqrt(Math.pow(d-e.x,2)+Math.pow(p-e.y,2));f>r||(f1){const s=o.type==="source"?"target":"source";return a.find(c=>c.type===s)??a[0]}return a[0]}function vH(e,r,n,o,a,i=!1){const l=o.get(e);if(!l)return null;const s=a==="strict"?l.internals.handleBounds?.[r]:[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]],c=(n?s?.find(u=>u.id===n):s?.[0])??null;return c&&i?{...c,...v0(l,c,c.position,!0)}:c}function xH(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function OCe(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const wH=()=>!0;function MCe(e,{connectionMode:r,connectionRadius:n,handleId:o,nodeId:a,edgeUpdaterType:i,isTarget:l,domNode:s,nodeLookup:c,lib:u,autoPanOnConnect:d,flowId:p,panBy:f,cancelConnection:g,onConnectStart:b,onConnect:x,onConnectEnd:w,isValidConnection:k=wH,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:R,autoPanSpeed:A,dragThreshold:D=1,handleDomNode:N}){const P=eH(e.target);let O=0,B;const{x:L,y:Y}=Gi(e),M=xH(i,N),q=s?.getBoundingClientRect();let I=!1;if(!q||!M)return;const U=vH(a,M,o,c,r);if(!U)return;let V=Gi(e,q),G=!1,F=null,J=!1,Q=null;function z(){if(!d||!q)return;const[pe,Ce]=XF(V,q,A);f({x:pe,y:Ce}),O=requestAnimationFrame(z)}const W={...U,nodeId:a,type:M,position:U.position},X=c.get(a);let Z={inProgress:!0,isValid:null,from:v0(X,W,tt.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:X,to:V,toHandle:null,toPosition:HF[W.position],toNode:null};function oe(){I=!0,_(Z),b?.(e,{nodeId:a,handleId:o,handleType:M})}D===0&&oe();function ee(pe){if(!I){const{x:be,y:Me}=Gi(pe),Xe=be-L,Ge=Me-Y;if(!(Xe*Xe+Ge*Ge>D*D))return;oe()}if(!R()||!W){re(pe);return}const Ce=T();V=Gi(pe,q),B=PCe(y0(V,Ce,!1,[1,1]),n,c,W),G||(z(),G=!0);const ce=kH(pe,{handle:B,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:l?"target":"source",isValidConnection:k,doc:P,lib:u,flowId:p,nodeLookup:c});Q=ce.handleDomNode,F=ce.connection,J=OCe(!!B,ce.isValid);const de={...Z,isValid:J,to:ce.toHandle&&J?xx({x:ce.toHandle.x,y:ce.toHandle.y},Ce):V,toHandle:ce.toHandle,toPosition:J&&ce.toHandle?ce.toHandle.position:HF[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null};J&&B&&Z.toHandle&&de.toHandle&&Z.toHandle.type===de.toHandle.type&&Z.toHandle.nodeId===de.toHandle.nodeId&&Z.toHandle.id===de.toHandle.id&&Z.to.x===de.to.x&&Z.to.y===de.to.y||(_(de),Z=de)}function re(pe){if(!("touches"in pe&&pe.touches.length>0)){if(I){(B||Q)&&F&&J&&x?.(F);const{inProgress:Ce,...ce}=Z,de={...ce,toPosition:Z.toHandle?Z.toPosition:null};w?.(pe,de),i&&C?.(pe,de)}g(),cancelAnimationFrame(O),G=!1,J=!1,F=null,Q=null,P.removeEventListener("mousemove",ee),P.removeEventListener("mouseup",re),P.removeEventListener("touchmove",ee),P.removeEventListener("touchend",re)}}P.addEventListener("mousemove",ee),P.addEventListener("mouseup",re),P.addEventListener("touchmove",ee),P.addEventListener("touchend",re)}function kH(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:l,lib:s,flowId:c,isValidConnection:u=wH,nodeLookup:d}){const p=i==="target",f=r?l.querySelector(`.${s}-flow__handle[data-id="${c}-${r?.nodeId}-${r?.id}-${r?.type}"]`):null,{x:g,y:b}=Gi(e),x=l.elementFromPoint(g,b),w=x?.classList.contains(`${s}-flow__handle`)?x:f,k={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=xH(void 0,w),_=w.getAttribute("data-nodeid"),T=w.getAttribute("data-handleid"),R=w.classList.contains("connectable"),A=w.classList.contains("connectableend");if(!_||!C)return k;const D={source:p?_:o,sourceHandle:p?T:a,target:p?o:_,targetHandle:p?a:T};k.connection=D;const N=R&&A&&(n===ef.Strict?p&&C==="source"||!p&&C==="target":_!==o||T!==a);k.isValid=N&&u(D),k.toHandle=vH(_,C,T,d,n,!0)}return k}const R8={onPointerDown:MCe,isValid:kH};function ICe({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=Ea(e);function i({translateExtent:s,width:c,height:u,zoomStep:d=1,pannable:p=!0,zoomable:f=!0,inversePan:g=!1}){const b=_=>{if(_.sourceEvent.type!=="wheel"||!r)return;const T=n(),R=_.sourceEvent.ctrlKey&&of()?10:1,A=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*d,D=T[2]*Math.pow(2,A*R);r.scaleTo(D)};let x=[0,0];const w=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(x=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},k=_=>{const T=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!r)return;const R=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],A=[R[0]-x[0],R[1]-x[1]];x=R;const D=o()*Math.max(T[2],Math.log(T[2]))*(g?-1:1),N={x:T[0]-A[0]*D,y:T[1]-A[1]*D},P=[[0,0],[c,u]];r.setViewportConstrained({x:N.x,y:N.y,zoom:T[2]},P,s)},C=zF().on("start",w).on("zoom",p?k:null).on("zoom.wheel",f?b:null);a.call(C,{})}function l(){a.on("zoom",null)}return{update:i,destroy:l,pointer:qi}}const LCe=(e,r)=>e.x!==r.x||e.y!==r.y||e.zoom!==r.k,Ex=e=>({x:e.x,y:e.y,zoom:e.k}),A8=({x:e,y:r,zoom:n})=>mx.translate(e,r).scale(n),lf=(e,r)=>e.target.closest(`.${r}`),_H=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),zCe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,N8=(e,r=0,n=zCe,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},EH=e=>{const r=e.ctrlKey&&of()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function jCe({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:l,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(lf(d,r))return d.ctrlKey&&d.preventDefault(),!1;d.preventDefault(),d.stopImmediatePropagation();const p=n.property("__zoom").k||1;if(d.ctrlKey&&l){const w=qi(d),k=EH(d),C=p*Math.pow(2,k);o.scaleTo(n,C,w,d);return}const f=d.deltaMode===1?20:1;let g=a===zd.Vertical?0:d.deltaX*f,b=a===zd.Horizontal?0:d.deltaY*f;!of()&&d.shiftKey&&a!==zd.Vertical&&(g=d.deltaY*f,b=0),o.translateBy(n,-(g/p)*i,-(b/p)*i,{internal:!0});const x=Ex(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,s?.(d,x)),e.isPanScrolling&&(c?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150))}}function BCe({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",l=!r&&i&&!o.ctrlKey,s=lf(o,e);if(o.ctrlKey&&i&&s&&o.preventDefault(),l||s)return null;o.preventDefault(),n.call(this,o,a)}}function FCe({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=Ex(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,o.sourceEvent?.type==="mousedown"&&r(!0),n&&n?.(o.sourceEvent,a)}}function HCe({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&_H(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,Ex(i.transform))}}function UCe({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return l=>{if(!l.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&_H(r,e.mouseButton??0)&&!e.usedRightMouseButton&&l.sourceEvent&&i(l.sourceEvent),e.usedRightMouseButton=!1,o(!1),a&&LCe(e.prevViewport,l.transform))){const s=Ex(l.transform);e.prevViewport=s,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(l.sourceEvent,s)},n?150:0)}}}function qCe({zoomActivationKeyPressed:e,zoomOnScroll:r,zoomOnPinch:n,panOnDrag:o,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:l,noWheelClassName:s,noPanClassName:c,lib:u,connectionInProgress:d}){return p=>{const f=e||r,g=n&&p.ctrlKey,b=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(lf(p,`${u}-flow__node`)||lf(p,`${u}-flow__edge`)))return!0;if(!o&&!f&&!a&&!i&&!n||l||d&&!b||lf(p,s)&&b||lf(p,c)&&(!b||a&&b&&!e)||!n&&p.ctrlKey&&b)return!1;if(!n&&p.type==="touchstart"&&p.touches?.length>1)return p.preventDefault(),!1;if(!f&&!a&&!g&&b||!o&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(o)&&!o.includes(p.button)&&p.type==="mousedown")return!1;const x=Array.isArray(o)&&o.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||b)&&x}}function VCe({domNode:e,minZoom:r,maxZoom:n,paneClickDistance:o,translateExtent:a,viewport:i,onPanZoom:l,onPanZoomStart:s,onPanZoomEnd:c,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),f=zF().clickDistance(!Wi(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=Ea(e).call(f);_({x:i.x,y:i.y,zoom:rf(i.zoom,r,n)},[[0,0],[p.width,p.height]],a);const b=g.on("wheel.zoom"),x=g.on("dblclick.zoom");f.wheelDelta(EH);function w(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?a0:ax).transform(N8(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function k({noWheelClassName:L,noPanClassName:Y,onPaneContextMenu:M,userSelectionActive:q,panOnScroll:I,panOnDrag:U,panOnScrollMode:V,panOnScrollSpeed:G,preventScrolling:F,zoomOnPinch:J,zoomOnScroll:Q,zoomOnDoubleClick:z,zoomActivationKeyPressed:W,lib:X,onTransformChange:Z,connectionInProgress:oe}){q&&!d.isZoomingOrPanning&&C();const ee=I&&!W&&!q?jCe({zoomPanValues:d,noWheelClassName:L,d3Selection:g,d3Zoom:f,panOnScrollMode:V,panOnScrollSpeed:G,zoomOnPinch:J,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:c}):BCe({noWheelClassName:L,preventScrolling:F,d3ZoomHandler:b});if(g.on("wheel.zoom",ee,{passive:!1}),!q){const pe=FCe({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:s});f.on("start",pe);const Ce=HCe({zoomPanValues:d,panOnDrag:U,onPaneContextMenu:!!M,onPanZoom:l,onTransformChange:Z});f.on("zoom",Ce);const ce=UCe({zoomPanValues:d,panOnDrag:U,panOnScroll:I,onPaneContextMenu:M,onPanZoomEnd:c,onDraggingChange:u});f.on("end",ce)}const re=qCe({zoomActivationKeyPressed:W,panOnDrag:U,zoomOnScroll:Q,panOnScroll:I,zoomOnDoubleClick:z,zoomOnPinch:J,userSelectionActive:q,noPanClassName:Y,noWheelClassName:L,lib:X,connectionInProgress:oe});f.filter(re),z?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){f.on("zoom",null)}async function _(L,Y,M){const q=A8(L),I=f?.constrain()(q,Y,M);return I&&await w(I),new Promise(U=>U(I))}async function T(L,Y){const M=A8(L);return await w(M,Y),new Promise(q=>q(M))}function R(L){if(g){const Y=A8(L),M=g.property("__zoom");(M.k!==L.zoom||M.x!==L.x||M.y!==L.y)&&f?.transform(g,Y,null,{sync:!0})}}function A(){const L=g?IF(g.node()):{x:0,y:0,k:1};return{x:L.x,y:L.y,zoom:L.k}}function D(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?a0:ax).scaleTo(N8(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function N(L,Y){return g?new Promise(M=>{f?.interpolate(Y?.interpolate==="linear"?a0:ax).scaleBy(N8(g,Y?.duration,Y?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function P(L){f?.scaleExtent(L)}function O(L){f?.translateExtent(L)}function B(L){const Y=!Wi(L)||L<0?0:L;f?.clickDistance(Y)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:A,scaleTo:D,scaleBy:N,setScaleExtent:P,setTranslateExtent:O,syncViewport:R,setClickDistance:B}}var sf;(function(e){e.Line="line",e.Handle="handle"})(sf||(sf={}));function YCe({width:e,prevWidth:r,height:n,prevHeight:o,affectsX:a,affectsY:i}){const l=e-r,s=n-o,c=[l>0?1:l<0?-1:0,s>0?1:s<0?-1:0];return l&&a&&(c[0]=c[0]*-1),s&&i&&(c[1]=c[1]*-1),c}function WCe(e){const r=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),a=e.includes("top");return{isHorizontal:r,isVertical:n,affectsX:o,affectsY:a}}function ru(e,r){return Math.max(0,r-e)}function nu(e,r){return Math.max(0,e-r)}function Sx(e,r,n){return Math.max(0,r-e,e-n)}function SH(e,r){return e?!r:r}function GCe(e,r,n,o,a,i,l,s){let{affectsX:c,affectsY:u}=r;const{isHorizontal:d,isVertical:p}=r,f=d&&p,{xSnapped:g,ySnapped:b}=n,{minWidth:x,maxWidth:w,minHeight:k,maxHeight:C}=o,{x:_,y:T,width:R,height:A,aspectRatio:D}=e;let N=Math.floor(d?g-e.pointerX:0),P=Math.floor(p?b-e.pointerY:0);const O=R+(c?-N:N),B=A+(u?-P:P),L=-i[0]*R,Y=-i[1]*A;let M=Sx(O,x,w),q=Sx(B,k,C);if(l){let V=0,G=0;c&&N<0?V=ru(_+N+L,l[0][0]):!c&&N>0&&(V=nu(_+O+L,l[1][0])),u&&P<0?G=ru(T+P+Y,l[0][1]):!u&&P>0&&(G=nu(T+B+Y,l[1][1])),M=Math.max(M,V),q=Math.max(q,G)}if(s){let V=0,G=0;c&&N>0?V=nu(_+N,s[0][0]):!c&&N<0&&(V=ru(_+O,s[1][0])),u&&P>0?G=nu(T+P,s[0][1]):!u&&P<0&&(G=ru(T+B,s[1][1])),M=Math.max(M,V),q=Math.max(q,G)}if(a){if(d){const V=Sx(O/D,k,C)*D;if(M=Math.max(M,V),l){let G=0;!c&&!u||c&&!u&&f?G=nu(T+Y+O/D,l[1][1])*D:G=ru(T+Y+(c?N:-N)/D,l[0][1])*D,M=Math.max(M,G)}if(s){let G=0;!c&&!u||c&&!u&&f?G=ru(T+O/D,s[1][1])*D:G=nu(T+(c?N:-N)/D,s[0][1])*D,M=Math.max(M,G)}}if(p){const V=Sx(B*D,x,w)/D;if(q=Math.max(q,V),l){let G=0;!c&&!u||u&&!c&&f?G=nu(_+B*D+L,l[1][0])/D:G=ru(_+(u?P:-P)*D+L,l[0][0])/D,q=Math.max(q,G)}if(s){let G=0;!c&&!u||u&&!c&&f?G=ru(_+B*D,s[1][0])/D:G=nu(_+(u?P:-P)*D,s[0][0])/D,q=Math.max(q,G)}}}P=P+(P<0?q:-q),N=N+(N<0?M:-M),a&&(f?O>B*D?P=(SH(c,u)?-N:N)/D:N=(SH(c,u)?-P:P)*D:d?(P=N/D,u=c):(N=P*D,c=u));const I=c?_+N:_,U=u?T+P:T;return{width:R+(c?-N:N),height:A+(u?-P:P),x:i[0]*N*(c?-1:1)+I,y:i[1]*P*(u?-1:1)+U}}const CH={width:0,height:0,x:0,y:0},XCe={...CH,pointerX:0,pointerY:0,aspectRatio:1};function KCe(e){return[[0,0],[e.measured.width,e.measured.height]]}function ZCe(e,r,n){const o=r.position.x+e.position.x,a=r.position.y+e.position.y,i=e.measured.width??0,l=e.measured.height??0,s=n[0]*i,c=n[1]*l;return[[o-s,a-c],[o+i-s,a+l-c]]}function QCe({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=Ea(e);function l({controlPosition:c,boundaries:u,keepAspectRatio:d,resizeDirection:p,onResizeStart:f,onResize:g,onResizeEnd:b,shouldResize:x}){let w={...CH},k={...XCe};const C=WCe(c);let _,T=null,R=[],A,D,N,P=!1;const O=lF().on("start",B=>{const{nodeLookup:L,transform:Y,snapGrid:M,snapToGrid:q,nodeOrigin:I,paneDomNode:U}=n();if(_=L.get(r),!_)return;T=U?.getBoundingClientRect()??null;const{xSnapped:V,ySnapped:G}=b0(B.sourceEvent,{transform:Y,snapGrid:M,snapToGrid:q,containerBounds:T});w={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},k={...w,pointerX:V,pointerY:G,aspectRatio:w.width/w.height},A=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(A=L.get(_.parentId),D=A&&_.extent==="parent"?KCe(A):void 0),R=[],N=void 0;for(const[F,J]of L)if(J.parentId===r&&(R.push({id:F,position:{...J.position},extent:J.extent}),J.extent==="parent"||J.expandParent)){const Q=ZCe(J,_,J.origin??I);N?N=[[Math.min(Q[0][0],N[0][0]),Math.min(Q[0][1],N[0][1])],[Math.max(Q[1][0],N[1][0]),Math.max(Q[1][1],N[1][1])]]:N=Q}f?.(B,{...w})}).on("drag",B=>{const{transform:L,snapGrid:Y,snapToGrid:M,nodeOrigin:q}=n(),I=b0(B.sourceEvent,{transform:L,snapGrid:Y,snapToGrid:M,containerBounds:T}),U=[];if(!_)return;const{x:V,y:G,width:F,height:J}=w,Q={},z=_.origin??q,{width:W,height:X,x:Z,y:oe}=GCe(k,C,I,u,d,z,D,N),ee=W!==F,re=X!==J,pe=Z!==V&&ee,Ce=oe!==G&&re;if(!pe&&!Ce&&!ee&&!re)return;if((pe||Ce||z[0]===1||z[1]===1)&&(Q.x=pe?Z:w.x,Q.y=Ce?oe:w.y,w.x=Q.x,w.y=Q.y,R.length>0)){const be=Z-V,Me=oe-G;for(const Xe of R)Xe.position={x:Xe.position.x-be+z[0]*(W-F),y:Xe.position.y-Me+z[1]*(X-J)},U.push(Xe)}if((ee||re)&&(Q.width=ee&&(!p||p==="horizontal")?W:w.width,Q.height=re&&(!p||p==="vertical")?X:w.height,w.width=Q.width,w.height=Q.height),A&&_.expandParent){const be=z[0]*(Q.width??0);Q.x&&Q.x{P&&(b?.(B,{...w}),a?.({...w}),P=!1)});i.call(O)}function s(){i.on(".drag",null)}return{update:l,destroy:s}}function D8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var TH={exports:{}},$8={},RH={exports:{}},P8={};/**
+ */const sEe=[["path",{d:"M4 8h16",key:"svg-0"}],["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M8 4v4",key:"svg-2"}]],cEe=yt("outline","browser","Browser",sEe),Z8=E.createContext(null);function uEe({value:e,children:r}){return E.useContext(Z8)?y.jsx(y.Fragment,{children:r}):y.jsx(Z8.Provider,{value:e,children:r})}function U3({element:e,className:r,style:n}){const o=E.useContext(Z8);if(!e||!e.icon||e.icon==="none")return null;let a;return e.icon.startsWith("http://")||e.icon.startsWith("https://")?a=y.jsx("img",{src:e.icon,alt:e.title}):o&&(a=y.jsx(o,{node:e})),a?y.jsx("div",{className:Je(r,"likec4-element-icon"),"data-likec4-icon":e.icon,style:n,children:a}):null}const dEe={browser:cEe,cylinder:zj,mobile:lEe,person:aEe,queue:nEe,rectangle:tEe,storage:zj};function pEe({element:e,className:r}){const n=y.jsx(U3,{element:e,className:r});if(n)return n;const o=dEe[e.shape];return y.jsx("div",{className:Je(r,"likec4-shape-icon"),children:y.jsx(o,{})})}function Xh(e){const r=E.useRef(e);return r.current=e,E.useMemo(()=>Object.freeze({get current(){return r.current}}),[])}function Bj(e){const r=Xh(e);E.useEffect(()=>()=>{r.current()},[])}function V3(e,r,n,o=0){const a=E.useRef(void 0),i=E.useRef(void 0),l=E.useRef(e),s=E.useRef(void 0),c=()=>{a.current&&(clearTimeout(a.current),a.current=void 0),i.current&&(clearTimeout(i.current),i.current=void 0)};return Bj(c),E.useEffect(()=>{l.current=e},r),E.useMemo(()=>{const u=()=>{if(c(),!s.current)return;const p=s.current;s.current=void 0,l.current.apply(p.this,p.args)},d=function(...p){a.current&&clearTimeout(a.current),s.current={args:p,this:this},a.current=setTimeout(u,n),o>0&&!i.current&&(i.current=setTimeout(u,o))};return Object.defineProperties(d,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__debounced__${n}`}}),d},[n,o,...r])}const hEe=()=>{},Y3=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function fEe(e){const r=Xh(e),n=E.useRef(0),o=E.useCallback(()=>{Y3&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return Bj(o),[E.useMemo(()=>{const a=(...i)=>{Y3&&(o(),n.current=requestAnimationFrame(()=>{r.current(...i),n.current=0}))};return Object.defineProperties(a,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__raf`}}),a},[]),o]}const mEe=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n])return!1;return!0};function jj(e,r,n=mEe,o=E.useEffect,...a){const i=E.useRef(void 0);(i.current===void 0||Y3&&!n(i.current,r))&&(i.current=r),o(e,i.current,...a)}function gEe(e,r,n,o=0){E.useEffect(V3(e,r,n,o),r)}function Fj(){const e=E.useRef(!0);return E.useEffect(()=>{e.current=!1},[]),e.current}const Q8=Y3?E.useLayoutEffect:E.useEffect;function yEe(e){E.useEffect(()=>{e()},[])}function Hj(e,r){const[n,o]=fEe(e);E.useEffect(()=>(n(),o),r)}const bEe=e=>(e+1)%Number.MAX_SAFE_INTEGER;function vEe(){const[,e]=E.useState(0);return E.useCallback(()=>{e(bEe)},[])}function qj(e,r){const n=Fj();E.useEffect(n?hEe:e,r)}const xEe=e=>{e&&clearTimeout(e)};function W3(e,r){const n=Xh(e),o=Xh(r),a=E.useRef(null),i=E.useCallback(()=>{xEe(a.current)},[]),l=E.useCallback(()=>{o.current!==void 0&&(i(),a.current=setTimeout(()=>{n.current()},o.current))},[]);return E.useEffect(()=>(l(),i),[r]),[i,l]}const Uj=(e,r,n)=>{const o=E.useRef(void 0);return(o.current===void 0||!n(o.current,r))&&(o.current=r),E.useMemo(e,o.current)};function an(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n{}};function G3(){for(var e=0,r=arguments.length,n={},o;e=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}X3.prototype=G3.prototype={constructor:X3,on:function(e,r){var n=this._,o=kEe(e+"",n),a,i=-1,l=o.length;if(arguments.length<2){for(;++i0)for(var n=new Array(a),o=0,a,i;o=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Yj.hasOwnProperty(r)?{space:Yj[r],local:e}:e}function EEe(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===J8&&r.documentElement.namespaceURI===J8?r.createElement(e):r.createElementNS(n,e)}}function SEe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Wj(e){var r=K3(e);return(r.local?SEe:EEe)(r)}function CEe(){}function eE(e){return e==null?CEe:function(){return this.querySelector(e)}}function TEe(e){typeof e!="function"&&(e=eE(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a=_&&(_=C+1);!(R=w[_])&&++_=0;)(l=o[a])&&(i&&l.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(l,i),i=l);return this}function QEe(e){e||(e=JEe);function r(p,f){return p&&f?e(p.__data__,f.__data__):!p-!f}for(var n=this._groups,o=n.length,a=new Array(o),i=0;ir?1:e>=r?0:NaN}function e9e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function t9e(){return Array.from(this)}function r9e(){for(var e=this._groups,r=0,n=e.length;r1?this.each((r==null?h9e:typeof r=="function"?m9e:f9e)(e,r,n??"")):Kh(this.node(),e)}function Kh(e,r){return e.style.getPropertyValue(r)||Qj(e).getComputedStyle(e,null).getPropertyValue(r)}function y9e(e){return function(){delete this[e]}}function b9e(e,r){return function(){this[e]=r}}function v9e(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function x9e(e,r){return arguments.length>1?this.each((r==null?y9e:typeof r=="function"?v9e:b9e)(e,r)):this.node()[e]}function Jj(e){return e.trim().split(/^|\s+/)}function tE(e){return e.classList||new eF(e)}function eF(e){this._node=e,this._names=Jj(e.getAttribute("class")||"")}eF.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tF(e,r){for(var n=tE(e),o=-1,a=r.length;++o=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function G9e(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n()=>e;function nE(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:l,y:s,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}nE.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function o7e(e){return!e.ctrlKey&&!e.button}function a7e(){return this.parentNode}function i7e(e,r){return r??{x:e.x,y:e.y}}function l7e(){return navigator.maxTouchPoints||"ontouchstart"in this}function lF(){var e=o7e,r=a7e,n=i7e,o=l7e,a={},i=G3("start","drag","end"),l=0,s,c,u,d,p=0;function f(T){T.on("mousedown.drag",g).filter(o).on("touchstart.drag",w).on("touchmove.drag",k,n7e).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,R){if(!(d||!e.call(this,T,R))){var A=_(this,r.call(this,T,R),T,R,"mouse");A&&(Ea(T.view).on("mousemove.drag",b,t0).on("mouseup.drag",x,t0),aF(T.view),rE(T),u=!1,s=T.clientX,c=T.clientY,A("start",T))}}function b(T){if(Zh(T),!u){var R=T.clientX-s,A=T.clientY-c;u=R*R+A*A>p}a.mouse("drag",T)}function x(T){Ea(T.view).on("mousemove.drag mouseup.drag",null),iF(T.view,u),Zh(T),a.mouse("end",T)}function w(T,R){if(e.call(this,T,R)){var A=T.changedTouches,D=r.call(this,T,R),N=A.length,$,M;for($=0;$>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?ex(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?ex(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=c7e.exec(e))?new Qo(r[1],r[2],r[3],1):(r=u7e.exec(e))?new Qo(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=d7e.exec(e))?ex(r[1],r[2],r[3],r[4]):(r=p7e.exec(e))?ex(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=h7e.exec(e))?mF(r[1],r[2]/100,r[3]/100,1):(r=f7e.exec(e))?mF(r[1],r[2]/100,r[3]/100,r[4]):cF.hasOwnProperty(e)?pF(cF[e]):e==="transparent"?new Qo(NaN,NaN,NaN,0):null}function pF(e){return new Qo(e>>16&255,e>>8&255,e&255,1)}function ex(e,r,n,o){return o<=0&&(e=r=n=NaN),new Qo(e,r,n,o)}function y7e(e){return e instanceof r0||(e=Md(e)),e?(e=e.rgb(),new Qo(e.r,e.g,e.b,e.opacity)):new Qo}function aE(e,r,n,o){return arguments.length===1?y7e(e):new Qo(e,r,n,o??1)}function Qo(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}oE(Qo,aE,sF(r0,{brighter(e){return e=e==null?J3:Math.pow(J3,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?n0:Math.pow(n0,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qo(Od(this.r),Od(this.g),Od(this.b),tx(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hF,formatHex:hF,formatHex8:b7e,formatRgb:fF,toString:fF}));function hF(){return`#${Id(this.r)}${Id(this.g)}${Id(this.b)}`}function b7e(){return`#${Id(this.r)}${Id(this.g)}${Id(this.b)}${Id((isNaN(this.opacity)?1:this.opacity)*255)}`}function fF(){const e=tx(this.opacity);return`${e===1?"rgb(":"rgba("}${Od(this.r)}, ${Od(this.g)}, ${Od(this.b)}${e===1?")":`, ${e})`}`}function tx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Od(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Id(e){return e=Od(e),(e<16?"0":"")+e.toString(16)}function mF(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new Vi(e,r,n,o)}function gF(e){if(e instanceof Vi)return new Vi(e.h,e.s,e.l,e.opacity);if(e instanceof r0||(e=Md(e)),!e)return new Vi;if(e instanceof Vi)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),l=NaN,s=i-a,c=(i+a)/2;return s?(r===i?l=(n-o)/s+(n0&&c<1?0:l,new Vi(l,s,c,e.opacity)}function v7e(e,r,n,o){return arguments.length===1?gF(e):new Vi(e,r,n,o??1)}function Vi(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}oE(Vi,v7e,sF(r0,{brighter(e){return e=e==null?J3:Math.pow(J3,e),new Vi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?n0:Math.pow(n0,e),new Vi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new Qo(iE(e>=240?e-240:e+120,a,o),iE(e,a,o),iE(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new Vi(yF(this.h),rx(this.s),rx(this.l),tx(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tx(this.opacity);return`${e===1?"hsl(":"hsla("}${yF(this.h)}, ${rx(this.s)*100}%, ${rx(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yF(e){return e=(e||0)%360,e<0?e+360:e}function rx(e){return Math.max(0,Math.min(1,e||0))}function iE(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const lE=e=>()=>e;function x7e(e,r){return function(n){return e+n*r}}function w7e(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function k7e(e){return(e=+e)==1?bF:function(r,n){return n-r?w7e(r,n,e):lE(isNaN(r)?n:r)}}function bF(e,r){var n=r-e;return n?x7e(e,n):lE(isNaN(e)?r:e)}const nx=(function e(r){var n=k7e(r);function o(a,i){var l=n((a=aE(a)).r,(i=aE(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=bF(a.opacity,i.opacity);return function(d){return a.r=l(d),a.g=s(d),a.b=c(d),a.opacity=u(d),a+""}}return o.gamma=e,o})(1);function _7e(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;an&&(i=r.slice(n,i),s[l]?s[l]+=i:s[++l]=i),(o=o[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,c.push({i:l,x:Kl(o,a)})),n=cE.lastIndex;return n180?d+=360:d-u>180&&(u+=360),f.push({i:p.push(a(p)+"rotate(",null,o)-2,x:Kl(u,d)})):d&&p.push(a(p)+"rotate("+d+o)}function s(u,d,p,f){u!==d?f.push({i:p.push(a(p)+"skewX(",null,o)-2,x:Kl(u,d)}):d&&p.push(a(p)+"skewX("+d+o)}function c(u,d,p,f,g,b){if(u!==p||d!==f){var x=g.push(a(g)+"scale(",null,",",null,")");b.push({i:x-4,x:Kl(u,p)},{i:x-2,x:Kl(d,f)})}else(p!==1||f!==1)&&g.push(a(g)+"scale("+p+","+f+")")}return function(u,d){var p=[],f=[];return u=e(u),d=e(d),i(u.translateX,u.translateY,d.translateX,d.translateY,p,f),l(u.rotate,d.rotate,p,f),s(u.skewX,d.skewX,p,f),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,p,f),u=d=null,function(g){for(var b=-1,x=f.length,w;++b=0&&e._call.call(void 0,r),e=e._next;--Jh}function RF(){Ld=(lx=c0.now())+sx,Jh=i0=0;try{z7e()}finally{Jh=0,j7e(),Ld=0}}function B7e(){var e=c0.now(),r=e-lx;r>SF&&(sx-=r,lx=e)}function j7e(){for(var e,r=ix,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:ix=n);s0=e,dE(o)}function dE(e){if(!Jh){i0&&(i0=clearTimeout(i0));var r=e-Ld;r>24?(e<1/0&&(i0=setTimeout(RF,e-c0.now()-sx)),l0&&(l0=clearInterval(l0))):(l0||(lx=c0.now(),l0=setInterval(B7e,SF)),Jh=1,CF(RF))}}function AF(e,r,n){var o=new cx;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var F7e=G3("start","end","cancel","interrupt"),H7e=[],NF=0,DF=1,pE=2,ux=3,PF=4,hE=5,dx=6;function px(e,r,n,o,a,i){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;q7e(e,n,{name:r,index:o,group:a,on:F7e,tween:H7e,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:NF})}function fE(e,r){var n=Yi(e,r);if(n.state>NF)throw new Error("too late; already scheduled");return n}function Zl(e,r){var n=Yi(e,r);if(n.state>ux)throw new Error("too late; already running");return n}function Yi(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function q7e(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=TF(i,0,n.time);function i(u){n.state=DF,n.timer.restart(l,n.delay,n.time),n.delay<=u&&l(u-n.delay)}function l(u){var d,p,f,g;if(n.state!==DF)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===ux)return AF(l);g.state===PF?(g.state=dx,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+dpE&&o.state=0&&(r=r.slice(0,n)),!r||r==="start"})}function vSe(e,r,n){var o,a,i=bSe(r)?fE:Zl;return function(){var l=i(this,e),s=l.on;s!==o&&(a=(o=s).copy()).on(r,n),l.on=a}}function xSe(e,r){var n=this._id;return arguments.length<2?Yi(this.node(),n).on.on(e):this.each(vSe(n,e,r))}function wSe(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function kSe(){return this.on("end.remove",wSe(this._id))}function _Se(e){var r=this._name,n=this._id;typeof e!="function"&&(e=eE(e));for(var o=this._groups,a=o.length,i=new Array(a),l=0;l()=>e;function GSe(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Hs(e,r,n){this.k=e,this.x=r,this.y=n}Hs.prototype={constructor:Hs,scale:function(e){return e===1?this:new Hs(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new Hs(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mx=new Hs(1,0,0);IF.prototype=Hs.prototype;function IF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return mx;return e.__zoom}function gE(e){e.stopImmediatePropagation()}function u0(e){e.preventDefault(),e.stopImmediatePropagation()}function XSe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function KSe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function LF(){return this.__zoom||mx}function ZSe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function QSe(){return navigator.maxTouchPoints||"ontouchstart"in this}function JSe(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],l=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),l>i?(i+l)/2:Math.min(0,i)||Math.max(0,l))}function zF(){var e=XSe,r=KSe,n=JSe,o=ZSe,a=QSe,i=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],s=250,c=ax,u=G3("start","zoom","end"),d,p,f,g=500,b=150,x=0,w=10;function k(O){O.property("__zoom",LF).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",j).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(O,U,I,q){var V=O.selection?O.selection():O;V.property("__zoom",LF),O!==V?R(O,U,I,q):V.interrupt().each(function(){A(this,arguments).event(q).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},k.scaleBy=function(O,U,I,q){k.scaleTo(O,function(){var V=this.__zoom.k,G=typeof U=="function"?U.apply(this,arguments):U;return V*G},I,q)},k.scaleTo=function(O,U,I,q){k.transform(O,function(){var V=r.apply(this,arguments),G=this.__zoom,F=I==null?T(V):typeof I=="function"?I.apply(this,arguments):I,J=G.invert(F),Q=typeof U=="function"?U.apply(this,arguments):U;return n(_(C(G,Q),F,J),V,l)},I,q)},k.translateBy=function(O,U,I,q){k.transform(O,function(){return n(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof I=="function"?I.apply(this,arguments):I),r.apply(this,arguments),l)},null,q)},k.translateTo=function(O,U,I,q,V){k.transform(O,function(){var G=r.apply(this,arguments),F=this.__zoom,J=q==null?T(G):typeof q=="function"?q.apply(this,arguments):q;return n(mx.translate(J[0],J[1]).scale(F.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof I=="function"?-I.apply(this,arguments):-I),G,l)},q,V)};function C(O,U){return U=Math.max(i[0],Math.min(i[1],U)),U===O.k?O:new Hs(U,O.x,O.y)}function _(O,U,I){var q=U[0]-I[0]*O.k,V=U[1]-I[1]*O.k;return q===O.x&&V===O.y?O:new Hs(O.k,q,V)}function T(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function R(O,U,I,q){O.on("start.zoom",function(){A(this,arguments).event(q).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(q).end()}).tween("zoom",function(){var V=this,G=arguments,F=A(V,G).event(q),J=r.apply(V,G),Q=I==null?T(J):typeof I=="function"?I.apply(V,G):I,z=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),W=V.__zoom,X=typeof U=="function"?U.apply(V,G):U,Z=c(W.invert(Q).concat(z/W.k),X.invert(Q).concat(z/X.k));return function(oe){if(oe===1)oe=X;else{var ee=Z(oe),re=z/ee[2];oe=new Hs(re,Q[0]-ee[0]*re,Q[1]-ee[1]*re)}F.zoom(null,oe)}})}function A(O,U,I){return!I&&O.__zooming||new D(O,U)}function D(O,U){this.that=O,this.args=U,this.active=0,this.sourceEvent=null,this.extent=r.apply(O,U),this.taps=0}D.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,U){return this.mouse&&O!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var U=Ea(this.that).datum();u.call(O,this.that,new GSe(O,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),U)}};function N(O,...U){if(!e.apply(this,arguments))return;var I=A(this,U).event(O),q=this.__zoom,V=Math.max(i[0],Math.min(i[1],q.k*Math.pow(2,o.apply(this,arguments)))),G=Ui(O);if(I.wheel)(I.mouse[0][0]!==G[0]||I.mouse[0][1]!==G[1])&&(I.mouse[1]=q.invert(I.mouse[0]=G)),clearTimeout(I.wheel);else{if(q.k===V)return;I.mouse=[G,q.invert(G)],hx(this),I.start()}u0(O),I.wheel=setTimeout(F,b),I.zoom("mouse",n(_(C(q,V),I.mouse[0],I.mouse[1]),I.extent,l));function F(){I.wheel=null,I.end()}}function $(O,...U){if(f||!e.apply(this,arguments))return;var I=O.currentTarget,q=A(this,U,!0).event(O),V=Ea(O.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",z,!0),G=Ui(O,I),F=O.clientX,J=O.clientY;aF(O.view),gE(O),q.mouse=[G,this.__zoom.invert(G)],hx(this),q.start();function Q(W){if(u0(W),!q.moved){var X=W.clientX-F,Z=W.clientY-J;q.moved=X*X+Z*Z>x}q.event(W).zoom("mouse",n(_(q.that.__zoom,q.mouse[0]=Ui(W,I),q.mouse[1]),q.extent,l))}function z(W){V.on("mousemove.zoom mouseup.zoom",null),iF(W.view,q.moved),u0(W),q.event(W).end()}}function M(O,...U){if(e.apply(this,arguments)){var I=this.__zoom,q=Ui(O.changedTouches?O.changedTouches[0]:O,this),V=I.invert(q),G=I.k*(O.shiftKey?.5:2),F=n(_(C(I,G),q,V),r.apply(this,U),l);u0(O),s>0?Ea(this).transition().duration(s).call(R,F,q,O):Ea(this).call(k.transform,F,q,O)}}function j(O,...U){if(e.apply(this,arguments)){var I=O.touches,q=I.length,V=A(this,U,O.changedTouches.length===q).event(O),G,F,J,Q;for(gE(O),F=0;F"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},d0=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],BF=["Enter"," ","Escape"],jF={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var ef;(function(e){e.Strict="strict",e.Loose="loose"})(ef||(ef={}));var zd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(zd||(zd={}));var p0;(function(e){e.Partial="partial",e.Full="full"})(p0||(p0={}));const FF={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var eu;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(eu||(eu={}));var gx;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(gx||(gx={}));var tt;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(tt||(tt={}));const HF={[tt.Left]:tt.Right,[tt.Right]:tt.Left,[tt.Top]:tt.Bottom,[tt.Bottom]:tt.Top};function qF(e){return e===null?null:e?"valid":"invalid"}const UF=e=>"id"in e&&"source"in e&&"target"in e,eCe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),yE=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),h0=(e,r=[0,0])=>{const{width:n,height:o}=Wn(e),a=e.origin??r,i=n*a[0],l=o*a[1];return{x:e.position.x-i,y:e.position.y-l}},VF=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let l=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(l=i?r.nodeLookup.get(a):yE(a)?a:r.nodeLookup.get(a.id));const s=l?bx(l,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return yx(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return f0(n)},tf=(e,r={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(o=>{if(r.filter===void 0||r.filter(o)){const a=bx(o);n=yx(n,a)}}),f0(n)},bE=(e,r,[n,o,a]=[0,0,1],i=!1,l=!1)=>{const s={...y0(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const u of e.values()){const{measured:d,selectable:p=!0,hidden:f=!1}=u;if(l&&!p||f)continue;const g=d.width??u.width??u.initialWidth??null,b=d.height??u.height??u.initialHeight??null,x=m0(s,jd(u)),w=(g??0)*(b??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},tCe=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function rCe(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function nCe({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},l){if(e.size===0)return Promise.resolve(!0);const s=rCe(e,l),c=tf(s),u=tu(c,r,n,l?.minZoom??a,l?.maxZoom??i,l?.padding??.1);return await o.setViewport(u,{duration:l?.duration,ease:l?.ease,interpolate:l?.interpolate}),Promise.resolve(!0)}function YF({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const l=n.get(e),s=l.parentId?n.get(l.parentId):void 0,{x:c,y:u}=s?s.internals.positionAbsolute:{x:0,y:0},d=l.origin??o;let p=l.extent||a;if(l.extent==="parent"&&!l.expandParent)if(!s)i?.("005",Ql.error005());else{const g=s.measured.width,b=s.measured.height;g&&b&&(p=[[c,u],[c+g,u+b]])}else s&&af(l.extent)&&(p=[[l.extent[0][0]+c,l.extent[0][1]+u],[l.extent[1][0]+c,l.extent[1][1]+u]]);const f=af(p)?Bd(r,p,l.measured):r;return(l.measured.width===void 0||l.measured.height===void 0)&&i?.("015",Ql.error015()),{position:{x:f.x-c+(l.measured.width??0)*d[0],y:f.y-u+(l.measured.height??0)*d[1]},positionAbsolute:f}}async function oCe({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(p=>p.id)),l=[];for(const p of n){if(p.deletable===!1)continue;const f=i.has(p.id),g=!f&&p.parentId&&l.find(b=>b.id===p.parentId);(f||g)&&l.push(p)}const s=new Set(r.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),u=tCe(l,c);for(const p of c)s.has(p.id)&&!u.find(f=>f.id===p.id)&&u.push(p);if(!a)return{edges:u,nodes:l};const d=await a({nodes:l,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:l}:{edges:[],nodes:[]}:d}const rf=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),Bd=(e={x:0,y:0},r,n)=>({x:rf(e.x,r[0][0],r[1][0]-(n?.width??0)),y:rf(e.y,r[0][1],r[1][1]-(n?.height??0))});function WF(e,r,n){const{width:o,height:a}=Wn(n),{x:i,y:l}=n.internals.positionAbsolute;return Bd(e,[[i,l],[i+o,l+a]],r)}const GF=(e,r,n)=>en?-rf(Math.abs(e-n),1,r)/r:0,XF=(e,r,n=15,o=40)=>{const a=GF(e.x,o,r.width-o)*n,i=GF(e.y,o,r.height-o)*n;return[a,i]},yx=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),vE=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),f0=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),jd=(e,r=[0,0])=>{const{x:n,y:o}=yE(e)?e.internals.positionAbsolute:h0(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},bx=(e,r=[0,0])=>{const{x:n,y:o}=yE(e)?e.internals.positionAbsolute:h0(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},vx=(e,r)=>f0(yx(vE(e),vE(r))),m0=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},KF=e=>Wi(e.width)&&Wi(e.height)&&Wi(e.x)&&Wi(e.y),Wi=e=>!isNaN(e)&&isFinite(e),aCe=(e,r)=>{},g0=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),y0=({x:e,y:r},[n,o,a],i=!1,l=[1,1])=>{const s={x:(e-n)/a,y:(r-o)/a};return i?g0(s,l):s},xx=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function nf(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function iCe(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=nf(e,n),a=nf(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=nf(e.top??e.y??0,n),a=nf(e.bottom??e.y??0,n),i=nf(e.left??e.x??0,r),l=nf(e.right??e.x??0,r);return{top:o,right:l,bottom:a,left:i,x:i+l,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function lCe(e,r,n,o,a,i){const{x:l,y:s}=xx(e,[r,n,o]),{x:c,y:u}=xx({x:e.x+e.width,y:e.y+e.height},[r,n,o]),d=a-c,p=i-u;return{left:Math.floor(l),top:Math.floor(s),right:Math.floor(d),bottom:Math.floor(p)}}const tu=(e,r,n,o,a,i)=>{const l=iCe(i,r,n),s=(r-l.x)/e.width,c=(n-l.y)/e.height,u=Math.min(s,c),d=rf(u,o,a),p=e.x+e.width/2,f=e.y+e.height/2,g=r/2-p*d,b=n/2-f*d,x=lCe(e,g,b,d,r,n),w={left:Math.min(x.left-l.left,0),top:Math.min(x.top-l.top,0),right:Math.min(x.right-l.right,0),bottom:Math.min(x.bottom-l.bottom,0)};return{x:g-w.left+w.right,y:b-w.top+w.bottom,zoom:d}},of=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function af(e){return e!=null&&e!=="parent"}function Wn(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function ZF(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function QF(e,r={width:0,height:0},n,o,a){const i={...e},l=o.get(n);if(l){const s=l.origin||a;i.x+=l.internals.positionAbsolute.x-(r.width??0)*s[0],i.y+=l.internals.positionAbsolute.y-(r.height??0)*s[1]}return i}function JF(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function sCe(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function cCe(e){return{...jF,...e||{}}}function b0(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:l}=Gi(e),s=y0({x:i-(a?.left??0),y:l-(a?.top??0)},o),{x:c,y:u}=n?g0(s,r):s;return{xSnapped:c,ySnapped:u,...s}}const xE=e=>({width:e.offsetWidth,height:e.offsetHeight}),eH=e=>e?.getRootNode?.()||window?.document,uCe=["INPUT","SELECT","TEXTAREA"];function tH(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:uCe.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const rH=e=>"clientX"in e,Gi=(e,r)=>{const n=rH(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},nH=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(l=>{const s=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),type:e,nodeId:a,position:l.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...xE(l)}})};function oH({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:l,targetControlY:s}){const c=e*.125+a*.375+l*.375+n*.125,u=r*.125+i*.375+s*.375+o*.125,d=Math.abs(c-e),p=Math.abs(u-r);return[c,u,d,p]}function wx(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function aH({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case tt.Left:return[r-wx(r-o,i),n];case tt.Right:return[r+wx(o-r,i),n];case tt.Top:return[r,n-wx(n-a,i)];case tt.Bottom:return[r,n+wx(a-n,i)]}}function kx({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,curvature:l=.25}){const[s,c]=aH({pos:n,x1:e,y1:r,x2:o,y2:a,c:l}),[u,d]=aH({pos:i,x1:o,y1:a,x2:e,y2:r,c:l}),[p,f,g,b]=oH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${r} C${s},${c} ${u},${d} ${o},${a}`,p,f,g,b]}function iH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n